mopidy / mopidy-gmusic

DEPRECATED (Mopidy extension for playing music from Google Play Music)
https://mopidy.com
Apache License 2.0
214 stars 60 forks source link

403 on track play #192

Closed morgoth closed 6 years ago

morgoth commented 6 years ago

I started receiving 403 on track play - searching works fine. I didn't change anything in my settings and didn't update any package. It just started throwing 403 yesterday.

Anyone experiencing similar issue. Any advice how to debug it?

adnidor commented 6 years ago

I experienced the exactly same problem yesterday, it stopped after I put the ID of an android device instead of the default MAC-ID.

From that, I'd guess that google added an plausibility check for device ID to their API or otherwise changed the processing of IDs.

If that really is the cause, there's not much we can do about it, apart from mentioning it in the README

Do you use a manually configured device id or the automatically generated default?

morgoth commented 6 years ago

I used the default one (wihout putting explicit device_id in config). I changed it to my phone device id, but it didn't help

adnidor commented 6 years ago

Did you put a Android or iOS id?

morgoth commented 6 years ago

android one - I used this app https://play.google.com/store/apps/details?id=com.evozi.deviceid

adnidor commented 6 years ago

After shortly testing the app I found that it displayed an incorrect deviceid.

Could you try running the latest master branch without a deviceid configured? It will show you all devices including ID that are registered on your account. Then use the deviceid from there in your mopidy.conf

morgoth commented 6 years ago

@adnidor Thank you so much. The log output helped. Indeed the device id is different. After changing it to the correct one it works. :-)

kingosticks commented 6 years ago

By default, Mopidy-GMusic will use your system's MAC address

Any ideas why this is no longer "plausible"? If it's required that people now enter the real mac address of their mobile phone then the readme should reflect that.

adnidor commented 6 years ago

149 seems relevant here. If Google no longer allows MAC-IDs to be used, maybe implementation of this feature should be reconsidered

kingosticks commented 6 years ago

And possibly the same thing upstream: https://github.com/simon-weber/gmusicapi/issues/590

fergyfresh commented 6 years ago

I ran into the issue of not being able to use MAC-IDs that are constantly changing. If its a static MAC ID its fine, but if you send too many requests with different MAC IDs they end up blocking you. I ran into this here https://github.com/stevenleeg/geemusic/pull/214.

PoLoMoTo commented 6 years ago

I seem to be experiencing the same issue with MusicBox on a Raspberry Pi, the initial unset device-id results in the 403 when attempting to play however adding the android device ID from the app mentioned causes the Google Play Music folder to disappear entirely. Any ideas what I'm missing? I can post my debug log if necessary, is there any information contained in the log I should be concerned about posting?

adnidor commented 6 years ago

@PoLoMoTo Are there any errors in the log? A disappearing gmusic folder points to mopidy-gmusic not loading. Can you post the relevant config?