simon-weber / gmusicapi

An unofficial client library for Google Music.
https://unofficial-google-music-api.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.48k stars 257 forks source link

[ERROR]: the response format for GetLibrarySongs was not recognized. #148

Closed Links2004 closed 11 years ago

Links2004 commented 11 years ago

hi on "develop" branch i get the error:

2013-07-24 22:10:48,607 - gmusicapi.Webclient1 (shared:269) [ERROR]: the response format for GetLibrarySongs was not recognized.

Failed to validate field 'playlist' list schema: Required field 'matchedId' is missing

First, try the develop branch. If you can recreate this error with the most recent code please create an issue that includes the above ValidationException and the following request/response: {'url': 'https://play.google.com/music/services/loadalltracks', 'headers': {'Authorization': ''}, 'data': {'json': '{}'}, 'method': 'POST', 'params': {'u': 0, 'xt': 'DUMMY'}}

'{"playlistId":"all","requestTime":1374696330761000,"differentialUpdate":false,"playlist":[{"genre":"Anime","beatsPerMinute":0,"albumArtistNorm":"","artistNorm":"","album":"(Collab with xHanaOokami14x) Clocks","lastPlayed":1345326876858973,"type":2,"recentTimestamp":1345326876851000,"disc":0,"id":"6d09f7af-f395-3c21-accc-62cd23ac3994","composer":"","title":"(Collab with xHanaOokami14x) Clocks","albumArtist":"","totalTracks":0,"subjectToCuration":false,"name":"(Collab with xHanaOokami14x) Clocks","totalDiscs":0,"year":0,"titleNorm":"(collab with xhanaookami14x) clocks","artist":"","albumNorm":"(collab with xhanaookami14x) clocks","track":0,"origin":[],"durationMillis":311000,"albumArtUrl":"//DUMMY","deleted":false,"url":"","curatedByUser":false,"creationDate":1345326680246312,"playCount":0,"curationSuggested":false,"bitrate":151,"rating":0,"comment":""},{"genre":"JPop","beatsPerMinute":0,"al...'

A traceback follows: Traceback (most recent call last): File "\gmusicapi-1.2.0_dev-py2.7.egg\gmusicapi\protocol\shared.py", line 248, in perform cls.validate(response, parsed_response) File \gmusicapi-1.2.0_dev-py2.7.egg\gmusicapi\protocol\webclient.py", line 97, in validate return validictory.validate(msg, cls._res_schema)

simon-weber commented 11 years ago

Great; thanks. Upgrade to develop (pip install --upgrade git+git://github.com/simon-weber/Unofficial-Google-Music-API.git@develop) and let me know if that fixed it.

Links2004 commented 11 years ago

thanks, work nice again!