04-14-2020, 01:30 AM
Good news, the developer of upmpdcli has updated the code to now use the oauth login method for gmusicapi, and I have confirmed it working on my Moode system. That said, the process to get things going is a bit of command line work. Not sure if Tim will want to implement these changes into moode so the command line is not needed, but would require some modifications on his side.
Here is how I got it working:
downloaded the entire .../cdplugins directory: https://framagit.org/medoc92/upmpdcli/-/...Fcdplugins
unzipped and navigated to the .../cdplugins directory.
Mounted my moode system in linux (shutdown, ejected the card, loaded into my manjaro machine)
and
replaced the existing /usr/share/upmpdcli/cdplugins directory with the one downloaded above
unmount the moode system and reboot moode in the rpi
Navigated to the gmusic section of moode, and left all boxes blank, *except for oauth in the username section and 320 as the quality. I left all other boxes blank.
*ssh'd into moode from a terminal on my pc ( I couldn't get shell in a box to follow a weblink, or copy it out to the browser) then:
Then follow the link, authorize, and paste the code from the browser into the terminal, and hit enter.
Next:
I then restarted UPNP renderer within moode, and voila, finally access to my gmusic account, through Upnp renderer within moode via Bubbleupnp on my Pixel 2.
Here is how I got it working:
downloaded the entire .../cdplugins directory: https://framagit.org/medoc92/upmpdcli/-/...Fcdplugins
unzipped and navigated to the .../cdplugins directory.
Mounted my moode system in linux (shutdown, ejected the card, loaded into my manjaro machine)
and
replaced the existing /usr/share/upmpdcli/cdplugins directory with the one downloaded above
unmount the moode system and reboot moode in the rpi
Navigated to the gmusic section of moode, and left all boxes blank, *except for oauth in the username section and 320 as the quality. I left all other boxes blank.
*ssh'd into moode from a terminal on my pc ( I couldn't get shell in a box to follow a weblink, or copy it out to the browser) then:
Code:
cd /usr/share/upmpdcli/cdplugins/gmusic/
Code:
python3 gmusic-init-oauth.py ~/gmusic-mobile.cred
Then follow the link, authorize, and paste the code from the browser into the terminal, and hit enter.
Next:
Code:
sudo mkdir /var/cache/upmpdcli/gmusic
Code:
sudo cp ~/gmusic-mobile.cred /var/cache/upmpdcli/gmusic/
Code:
sudo chown -R upmpdcli /var/cache/upmpdcli/gmusic
I then restarted UPNP renderer within moode, and voila, finally access to my gmusic account, through Upnp renderer within moode via Bubbleupnp on my Pixel 2.