Convert spotify search into separate module and allow specifying artist and title while calling script for youtube #8

Merged
sem merged 9 commits from feature/separate-spotify-search-module into main 2026-05-19 20:25:27 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 2c35d5fed0 - Show all commits

View File

@@ -452,7 +452,7 @@ def save_album_from_spotify(spotify, audio, x: str, spotify_data: dict) -> bool:
year = str(datetime.strptime(release_date, '%Y').year) year = str(datetime.strptime(release_date, '%Y').year)
except: except:
year = str(release_date) year = str(release_date)
logging.info("Parsed release date: " + release_date + ", year: " + year)
if x.endswith(".flac"): if x.endswith(".flac"):
audio["year"] = year audio["year"] = year
audio["date"] = release_date audio["date"] = release_date

View File

@@ -3,6 +3,8 @@ python3 make_folders.py
for f in ./*.mp3; do ffprobe "$f"; done for f in ./*.mp3; do ffprobe "$f"; done
for f in ./*.flac; do ffprobe "$f"; done for f in ./*.flac; do ffprobe "$f"; done
# exit 0
mkdir ../temp mkdir ../temp
rm -r ../temp/* rm -r ../temp/*
mv ./*/ ../temp #move all directories mv ./*/ ../temp #move all directories