Compare commits

9 Commits

Author SHA1 Message Date
d85eda79bc Fix script for flac files 2026-05-21 11:38:41 +00:00
d8a4ca6aa1 Add comment to fix flac script 2026-05-21 11:28:38 +00:00
c3ab16ff9c Add script to fix flac file 2026-05-21 11:28:00 +00:00
sem
8433ca6455 Merge pull request 'Convert spotify search into separate module and allow specifying artist and title while calling script for youtube' (#8) from feature/separate-spotify-search-module into main
Reviewed-on: #8
2026-05-19 20:25:26 +00:00
e9e1f3169e fix comment 2026-05-19 20:23:59 +00:00
SemvdHoeven
da98aaa7ad uncomment process call 2026-05-08 16:28:40 +02:00
SemvdHoeven
e22b5c6de2 Handle - for artist and title from olivetin 2026-05-08 15:49:50 +02:00
SemvdHoeven
bf2fcfbe5c merge with branch and pass arguments directly 2026-05-08 15:42:45 +02:00
SemvdHoeven
2f6f873082 forward arguments safely 2026-05-08 15:41:41 +02:00
2 changed files with 34 additions and 4 deletions

View File

@@ -1,10 +1,15 @@
#!/bin/bash
echo "Downloading youtube song $1"
source .env/bin/activate
if [ "$2" = "-" ] && [ "$3" = "-" ]; then
echo "Downloading only with url, ignoring artist and title"
python3 download_youtube.py "$1"
else
echo "Downloading only with url, ignoring artist and title"
echo "using artist $2 and title $3"
python3 download_youtube.py "$@"
fi
echo "using artist $2 and title $3"
python3 download_youtube.py $1 $2 $3
# ./process_music.sh
./process_music.sh
echo "Done!"

View File

@@ -0,0 +1,25 @@
#!/bin/bash
# script to fix where flac tags are set correctly but navidrome still sees them as having [Unknown album] and [Unknown artist]
# usage: fix_unknown_album_and_artist_flac_file.sh FILENAME [LOCATION]
# parameters:
# FILENAME: file to fix
# LOCATION: optional, location of the file, if the script is run from a different directory than where the file to fix is.
if [ -z "$2" ]
then
echo "staying in current directory"
else
echo "moving to $2"
cd "$2"
fi
echo "Fixing flac file $1"
echo "running command ffmpeg -i $1 -c:a flac -map_metadata 0 fixed.flac"
ffmpeg -i "$1" -c:a flac -map_metadata 0 "fixed.flac"
echo "moving fixed.flac to $1"
mv "fixed.flac" "$1"