simon-weber/Unofficial-Google-Music-API — Issue #3: MP3 files with no, or bad, metadata fail to Upload
Author: mystilleef
Created: 2012-03-02 12:19:53+00:00
State: open

Great job on the project.

Some of my mp3 files have no metadata. I've notice that those files fail to upload. See the traceback stack below. I've also noticed that when any kind of exception happens in upload, I can't use it again.

Otherwise, great job!

lateef@neuron ~/Videos> kgmp --add j-cole-visionz-of-home-prod-by-elite-mp3.mp3
'title'
Traceback (most recent call last):
File "/home/lateef/Dropbox/Korin/Korin/Korin/KorinGoogleMusicService/Manager.py", line 69, in add_songs
result = self.gmapi.upload(filenames)
File "", line 2, in upload
File "/home/lateef/Dropbox/Korin/Korin/Korin/KorinGoogleMusicService/gmapi/utils/utils.py", line 65, in wrapper
return function(*args, **kw)
File "/home/lateef/Dropbox/Korin/Korin/Korin/KorinGoogleMusicService/gmapi/api.py", line 328, in upload
session_requests = self.mm_protocol.make_upload_session_requests(cid_map, metadataresp)
File "/home/lateef/Dropbox/Korin/Korin/Korin/KorinGoogleMusicService/gmapi/protocol.py", line 408, in make_upload_session_requests
"CurrentUploadingTrack": audio["title"][0], #there's an assumption here...
File "/usr/lib/python2.7/site-packages/mutagen/__init__.py", line 83, in __getitem__
if self.tags is None: raise KeyError, key