spotify-downloader: Error when applying metadata: `'albumartist' is not a valid key`
Everything installed correctly.
I try to download a playlist with :
python3 spotdl.py --list=the-kajitsu-playlist.txt
and I have this result :
INFO: Preparing to download 47 songs
INFO: 1. After the Heat - Eno & Cluster - The Shade - 1978 (http://www.youtube.com/watch?v=BlSEasigWEQ)
3,039,737 Bytes [100.00%] received. Rate: [ 365 KB/s]. ETA: [0 secs]
INFO: Converting Eno Moebius Roedelius - The Shade.m4a to mp3
INFO: Applying metadata
Traceback (most recent call last):
File "spotdl.py", line 216, in <module>
main()
File "spotdl.py", line 198, in main
download_list(text_file=const.args.list)
File "spotdl.py", line 83, in download_list
download_single(raw_song, number=number)
File "spotdl.py", line 172, in download_single
metadata.embed(os.path.join(const.args.folder, output_song), meta_tags)
File "/home/arnauld/Desktop/spotify-downloader/core/metadata.py", line 34, in embed
return embed.as_mp3()
File "/home/arnauld/Desktop/spotify-downloader/core/metadata.py", line 57, in as_mp3
self._embed_basic_metadata(audiofile, preset=TAG_PRESET)
File "/home/arnauld/Desktop/spotify-downloader/core/metadata.py", line 137, in _embed_basic_metadata
audiofile[preset['albumartist']] = meta_tags['artists'][0]['name']
File "/usr/lib/python3/dist-packages/mutagen/easyid3.py", line 212, in __setitem__
raise EasyID3KeyError("%r is not a valid key" % key)
mutagen.easyid3.EasyID3KeyError: "'albumartist' is not a valid key"
Thank you.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (10 by maintainers)
Ok, here is the result (if I didn’t make any mistakes), I ran the code in python (saved as 1.py) in the same folder I put the audio file “Alan Walker - Fade.mp3” :