Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Error in make_upload_session_requests #59

Closed
fruel opened this issue Dec 23, 2012 · 1 comment
Closed

Error in make_upload_session_requests #59

fruel opened this issue Dec 23, 2012 · 1 comment

Comments

@fruel
Copy link

fruel commented Dec 23, 2012

I tried to use your API to upload mp3s to Google Music but calling api.upload always returns an empty dictionary.

My upload script: http://pastebin.com/b7r7GPNj
I run it with this command: python google_music.py -e asdf@gmail.com /x/y/z/This\ is\ a\ MP3.mp3

MP3 file: http://pastebin.com/WCUWg5Ub

I have 510 songs on my Google Music account and the the device I want to use for uploading is authorized.

I traced the problem to the following lines:

protocol.py:841 (make_upload_session_requests): The array server_response.response.uploads is empty.

api.py:781 (_upload_mp3s): self._mm_pb_call("metadata", metadata_request) returns this:
u0: 1
response {
}
state {
u0: 0
u1: 0
u2: 5
u3: 12000
u4: 0
u5: 16000
}

Until last week I used https://github.com/antimatter15/google-music-protocol/blob/master/py/upload.py to upload mp3s to Google Music but this script stopped working last week. Runnig it in verbose mode it prints the same response as your API (self._mm_pb_call("metadata", metadata_request) )

@simon-weber
Copy link
Owner

Thanks for letting me know. The most recent upload change is a doozy, and I'm currently tracking it in #51.

I'm going to merge this into #51; keep an eye on it for changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants