stevenleeg / geemusic

A bridge between Google Music and Amazon's Alexa
GNU General Public License v3.0
664 stars 181 forks source link

Free Google Play Music account only allows playlist functionality. #263

Open xstech opened 5 years ago

xstech commented 5 years ago

I'm currently using Heroku to run the app and after setting it up and the Alexa skill everything links ok Alexa sends the commands to Heroku but then returns that it can't find whatever music or album I've asked for. I'm not getting any errors that I can tell with the link between google and Heroku I did the app password and added the Android ID. I'm not exactly the best with coding more a hardware and network person so i'm hoping someone might see what i'm missing and be able to help. Thank you in advance for any help. [music-logs-1540537308339.txt] (https://github.com/stevenleeg/geemusic/files/2518102/music-logs-1540537308339.txt)

fergyfresh commented 5 years ago

Hmmm. It seems as if everything's working on the heroku side. Maybe you don't have the alexa skill setup right in the skills console? Re-read the README and let me know if you have any questions. It appears to be working all the way up to the playback portion.

xstech commented 5 years ago

I just went and rebuilt the Alexa skill following everything to the letter but get the same result. Alexa is able to accept the request and send it to Heroku but then gets a response from Heroku that it can't find the song. On Heroku I have my Android_ID, have the App_URL as the Heroku address minus the slash at the end, have the Debug set to false, and then have the password as an app password as I have two factor. I haven't changed any settings other then those so everything should be setup as the deploy set them. Here's the Heroku readout for the song request both times I asked Alexa just to ask gee music got a response then asked for the song. Thank you for any help.

2018-10-27T00:52:19.037501+00:00 app[web.1]: Fetching library... 2018-10-27T00:52:19.037579+00:00 app[web.1]: -------------------------------------------------------------------------------- 2018-10-27T00:52:33.834471+00:00 heroku[router]: at=info method=POST path="/alexa" host=xscorpmusic.herokuapp.com request_id=f8437e97-7f61-4ebb-b93c-d8e3e73051d0 fwd="72.21.217.80" dyno=web.1 connect=0ms service=105ms status=200 bytes=602 protocol=https 2018-10-27T00:52:33.832973+00:00 app[web.1]: 10.147.20.4 - - [27/Oct/2018 00:52:33] "POST /alexa HTTP/1.1" 200 - 2018-10-27T00:52:44.445434+00:00 app[web.1]: -------------------------------------------------------------------------------- 2018-10-27T00:52:44.445461+00:00 app[web.1]: DEBUG in selection [/app/geemusic/intents/selection.py:101]: 2018-10-27T00:52:44.445463+00:00 app[web.1]: Fetching song when can I see you again by owl city 2018-10-27T00:52:44.445750+00:00 app[web.1]: -------------------------------------------------------------------------------- 2018-10-27T00:52:44.929902+00:00 app[web.1]: 10.13.184.197 - - [27/Oct/2018 00:52:44] "POST /alexa HTTP/1.1" 200 - 2018-10-27T00:52:44.931915+00:00 heroku[router]: at=info method=POST path="/alexa" host=xscorpmusic.herokuapp.com request_id=fccb306c-bc67-4db0-b7d1-5064463d967c fwd="72.21.217.80" dyno=web.1 connect=0ms service=520ms status=200 bytes=322 protocol=https 2018-10-27T01:02:37.821683+00:00 heroku[router]: at=info method=POST path="/alexa" host=xscorpmusic.herokuapp.com request_id=7056e2f4-5c28-41b9-a9a2-bc0ab53d19aa fwd="72.21.217.72" dyno=web.1 connect=0ms service=83ms status=200 bytes=602 protocol=https 2018-10-27T01:02:37.820249+00:00 app[web.1]: 10.61.152.110 - - [27/Oct/2018 01:02:37] "POST /alexa HTTP/1.1" 200 - 2018-10-27T01:02:49.607519+00:00 app[web.1]: -------------------------------------------------------------------------------- 2018-10-27T01:02:49.607540+00:00 app[web.1]: DEBUG in selection [/app/geemusic/intents/selection.py:101]: 2018-10-27T01:02:49.607543+00:00 app[web.1]: Fetching song when can I see you again by None 2018-10-27T01:02:49.607550+00:00 app[web.1]: -------------------------------------------------------------------------------- 2018-10-27T01:02:50.079987+00:00 heroku[router]: at=info method=POST path="/alexa" host=xscorpmusic.herokuapp.com request_id=858fd1c7-51d9-4cf7-8b3d-23c497ff33b7 fwd="72.21.217.72" dyno=web.1 connect=0ms service=539ms status=200 bytes=322 protocol=https 2018-10-27T01:02:50.077257+00:00 app[web.1]: 10.37.251.208 - - [27/Oct/2018 01:02:50] "POST /alexa HTTP/1.1" 200 -

fergyfresh commented 5 years ago

Do you have a paid account or a free account?

xstech commented 5 years ago

free account on everything

mikeage commented 5 years ago

I'm surprised you didn't see any errors, but in general, free accounts can't play music from the store and geemusic as released doesn't support the library. You can try PR #255 , or, for a simpler test, try playing a playlist (those do seem to work with free accounts)

xstech commented 5 years ago

oh sorry I didn't think about google I have a gsuiet account with play music subscription I can use but it seams to error on the login when I use that account

xstech commented 5 years ago

I think I may have found the problem. When using G-Suites it fails to login even with the app password correct email and android id number.

everyonce commented 5 years ago

Is there a way to fix this? I'm in the same boat.

fergyfresh commented 5 years ago

See my post https://github.com/stevenleeg/geemusic/issues/269#issuecomment-443510048. This might help you? I'm not 100% sure this is your problem though. I don't use the free account.

fergyfresh commented 5 years ago

Free accounts only work with playlists in the current implementation.

everyonce commented 5 years ago

I can verify that it does work with free accounts, playlists only, and I had to use a short device id.

mikeage commented 5 years ago

Now that #255 is merged, a decent amount of library functionality is supported (play artists, albums, songs)