mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Bug fix change tag to tags
This commit is contained in:
@@ -16,7 +16,7 @@ def compare(file, metadata):
|
|||||||
# fetch track title metadata
|
# fetch track title metadata
|
||||||
already_tagged = audiofile['title'][0] == metadata['name']
|
already_tagged = audiofile['title'][0] == metadata['name']
|
||||||
elif file.endswith('.m4a'):
|
elif file.endswith('.m4a'):
|
||||||
tag = {'title': '\xa9nam'}
|
tags = {'title': '\xa9nam'}
|
||||||
audiofile = MP4('Music/' + file)
|
audiofile = MP4('Music/' + file)
|
||||||
# fetch track title metadata
|
# fetch track title metadata
|
||||||
already_tagged = audiofile[tags['title']] == metadata['name']
|
already_tagged = audiofile[tags['title']] == metadata['name']
|
||||||
|
|||||||
14
spotdl.py
14
spotdl.py
@@ -220,17 +220,18 @@ def convert_with_FFmpeg(music_file):
|
|||||||
print('Unknown formats. Unable to convert.', args.input_ext, args.output_ext)
|
print('Unknown formats. Unable to convert.', args.input_ext, args.output_ext)
|
||||||
return
|
return
|
||||||
|
|
||||||
#command = (ffmpeg_pre +
|
command = (ffmpeg_pre +
|
||||||
# '-i "Music/' + music_file + args.input_ext + '"' +
|
'-i "Music/' + music_file + args.input_ext + '"' +
|
||||||
# ffmpeg_params +
|
ffmpeg_params +
|
||||||
# '"Music/' + music_file + args.output_ext + '"').split(' ')
|
'"Music/' + music_file + args.output_ext + '"').split(' ')
|
||||||
|
|
||||||
commandos = (ffmpeg_pre +
|
commandos = (ffmpeg_pre +
|
||||||
'-i "Music/' + music_file + args.input_ext + '" ' +
|
'-i "Music/' + music_file + args.input_ext + '" ' +
|
||||||
ffmpeg_params +
|
ffmpeg_params +
|
||||||
'"Music/' + music_file + args.output_ext + '" ')
|
'"Music/' + music_file + args.output_ext + '" ')
|
||||||
#print(command)
|
print(command)
|
||||||
#print(commandos)
|
print(commandos)
|
||||||
|
exit()
|
||||||
os.system(commandos)
|
os.system(commandos)
|
||||||
#subprocess.call(command)
|
#subprocess.call(command)
|
||||||
|
|
||||||
@@ -337,6 +338,7 @@ if __name__ == '__main__':
|
|||||||
os.makedirs("Music")
|
os.makedirs("Music")
|
||||||
|
|
||||||
# token is mandatory when using Spotify's API
|
# token is mandatory when using Spotify's API
|
||||||
|
# https://developer.spotify.com/news-stories/2017/01/27/removing-unauthenticated-calls-to-the-web-api/
|
||||||
token = misc.generate_token()
|
token = misc.generate_token()
|
||||||
spotify = spotipy.Spotify(auth=token)
|
spotify = spotipy.Spotify(auth=token)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user