EnigmaCurry / GMusicFS

A FUSE filesystem for Google Music
153 stars 36 forks source link

cannot retrieve device id #31

Open slifin opened 10 years ago

slifin commented 10 years ago

gmusicfs --deviceid ERROR:gmusicapi.Webclient1:the response format for GetSettings was not recognized.

Failed to validate field 'devices' list schema: additional property 'lastUsedMs' not defined by 'properties' or 'patternProperties' are not allowed in list item

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/loadsettings', 'headers': {'Authorization': ''}, 'data': {'json': '{"sessionId": ""}'}, 'method': 'POST', 'params': {'u': 0, 'xt': 'CjUKATASMEFNLVdiWGo0eERNOS1TYjJJT3NBX0tXMUxla2Njb1luckE6MTQwMTUzMDI1NDM3Nw=='}}

'{"settings":{"labs":[{"enabled":false,"title":"Desktop Notifications","description":"Find out what\u0027s playing without having to switch back to your Google Play Music tab. A notification will appear at the start of each song with the song title, artist name, album title and album cover. Support for this lab is still experimental and it may not work in all cases.","name":"dn"},{"enabled":true,"title":"HTML5 Audio","description":"Listen to your music without the need for Flash. Support for this lab is still experimental and it may not work in all cases.","name":"ha"},{"enabled":false,"title":"5-Star Ratings","description":"Rate songs on a 5-star scale rather than thumbs up or thumbs down.","name":"sr"},{"enabled":false,"title":"View Track Comments","description":"Enable a comments field to be seen and edited for all songs. Although many people ignore this field, some find it helpful for storing additional information such as multiple genres, moods, musicians, conductors, dance styles,...'

A traceback follows: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/gmusicapi/protocol/shared.py", line 248, in perform cls.validate(response, parsed_response) File "/usr/local/lib/python2.7/dist-packages/gmusicapi/protocol/webclient.py", line 103, in validate return validictory.validate(msg, cls._res_schema) File "/usr/local/lib/python2.7/dist-packages/validictory/init.py", line 36, in validate return v.validate(data, schema) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 584, in validate self._validate(data, schema) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 587, in _validate self.validate("_data", {"_data": data}, schema) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 618, in validate newschema.get(schemaprop)) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 242, in validate_properties properties.get(eachProp)) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 618, in __validate newschema.get(schemaprop)) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 242, in validate_properties properties.get(eachProp)) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 618, in __validate newschema.get(schemaprop)) File "/usr/local/lib/python2.7/dist-packages/validictory/validator.py", line 288, in validate_items e.value) ValidationException: Failed to validate field 'devices' list schema: additional property 'lastUsedMs' not defined by 'properties' or 'patternProperties' are not allowed in list item NoName : 0x31e5e5d2a733c961 NoName : 0x32395fbc9dd954d0 NoName : 0x347322676594dc60 NoName : 0x365c49c1e87c99a7 NoName : 0x39eb63e4b2554c72 NoName : 0x3a52b4c0db878e79 NoName : 0x3cf7ca5d1486996a NoName : 0x3f3c45c0af468c89