jwdempsey / GoogleMusic.bundle

Plex Google Music Plugin
65 stars 18 forks source link

"NotLoggedIn" Google 2-Step Auth #21

Open thatjames opened 7 years ago

thatjames commented 7 years ago

Hello, I get the "This channel is unavailable" error. I've added an application password for Google to grant access to the account.

Interestingly, I don't see it being used on the app password dashboard

Logs are

2016-12-07 17:44:23,230 (e88) : DEBUG (runtime:717) - Handling request GET /music/googlemusic/:/prefs 2016-12-07 17:44:23,232 (e88) : DEBUG (runtime:49) - Received packed state data (80 bytes) 2016-12-07 17:44:23,233 (e88) : DEBUG (runtime:814) - Found route matching /music/googlemusic/:/prefs 2016-12-07 17:44:23,233 (e88) : DEBUG (runtime:88) - Sending packed state data (112 bytes) 2016-12-07 17:44:23,234 (e88) : DEBUG (runtime:924) - Response: [200] MediaContainer, 401 bytes 2016-12-07 17:45:06,519 (3ac) : DEBUG (runtime:717) - Handling request GET /music/googlemusic/:/prefs/set?password=erzyozuydhhhzddd 2016-12-07 17:45:06,519 (3ac) : DEBUG (runtime:49) - Received packed state data (80 bytes) 2016-12-07 17:45:06,520 (3ac) : DEBUG (runtime:814) - Found route matching /music/googlemusic/:/prefs/set 2016-12-07 17:45:06,528 (3ac) : DEBUG (preferences:198) - Saved the user preferences 2016-12-07 17:45:06,529 (3ac) : DEBUG (runtime:88) - Sending packed state data (112 bytes) 2016-12-07 17:45:06,529 (3ac) : DEBUG (runtime:924) - Response: [200] bool, 0 bytes 2016-12-07 17:45:12,680 (33c) : DEBUG (runtime:717) - Handling request GET /music/googlemusic 2016-12-07 17:45:12,681 (33c) : DEBUG (runtime:49) - Received packed state data (80 bytes) 2016-12-07 17:45:12,683 (33c) : DEBUG (runtime:814) - Found route matching /music/googlemusic 2016-12-07 17:45:13,183 (33c) : CRITICAL (core:574) - Exception (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-6f64a8d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 843, in handle_request result = f(**d) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-6f64a8d\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\handlers\base.py", line 111, in call result = self.func(*args, **kwargs) File "C:\Users\jameshey\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Code\__init__.py", line 47, in MainMenu API.authenticate(Prefs['email'], Prefs['password']) File "C:\Users\jameshey\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusic.py", line 66, in authenticate self._set_all_access() File "C:\Users\jameshey\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusic.py", line 38, in _set_all_access settings = self._webclient._make_call(webclient.GetSettings, '') File "C:\Users\jameshey\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\clients\shared.py", line 80, in _make_call return protocol.perform(self.session, self.validate, *args, **kwargs) File "C:\Users\jameshey\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\protocol\shared.py", line 208, in perform response = session.send(req_kwargs, cls.required_auth) File "C:\Users\jameshey\AppData\Local\Plex Media Server\Plug-ins\GoogleMusic.bundle\Contents\Libraries\Shared\gmusicapi\session.py", line 81, in send raise NotLoggedIn NotLoggedIn

shoguevara commented 7 years ago

https://github.com/jwdempsey/GoogleMusic.bundle/issues/12#issuecomment-265109339

thatjames commented 7 years ago

@shoguevara thanks man, will have a look at the solutions in that thread when I get home