wernerkarlheisenberg / plex-stieve

Plex Plugin to view Medialaan channels (VTM, Q2, Vitaya, VTM Kzoom, Kadet, CAZ) live using Stievie FREE.
7 stars 1 forks source link

Login failing (channel not responding) #2

Closed Blizzke closed 6 years ago

Blizzke commented 6 years ago

(fyi: The requests module is not included in the release. It took some searching to figure that out and to add it to the plugin itself as I didn't have it installed on the server itself. Had to recursively clone it and then extract the requests module from that).

When I try to start the channel it says not responding and the log claims a login error, but I'm 100% sure the details are correct (filled with 1Password, also tried copy/pasting from there as alternative).

CRITICAL (__init__:80) - Login Failed (most recent call last):
  File "/mnt/data/plexmediaserver/Plex Media Server/Plug-ins/Stievie.bundle/Contents/Code/__init__.py", line 53, in Authenticate
    uid=login_resp.json()['UID']
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-313f93718/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in <lambda>
    _getitem_           = lambda x, y: x.__getitem__(y),
KeyError: 'UID'
CRITICAL (runtime:889) - Exception (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-313f93718/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
    result = f(**d)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-313f93718/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 111, in call
    result = self.func(*args, **kwargs)
  File "/mnt/data/plexmediaserver/Plex Media Server/Plug-ins/Stievie.bundle/Contents/Code/__init__.py", line 24, in MainMenu
    url= StreamURL(channel.url_name),
  File "/mnt/data/plexmediaserver/Plex Media Server/Plug-ins/Stievie.bundle/Contents/Code/__init__.py", line 35, in StreamURL
    'Authorization' : "access_token=" + Dict['accessToken']
TypeError: cannot concatenate 'str' and 'NoneType' objects
wernerkarlheisenberg commented 6 years ago

Thanks for your remark on the missing requests library. Feel free to update the readme file to make it more clear. I'm lacking time at this moment :-(.

Regarding the login failure. I did a quick check and for me it is still working, so no changes on the Stievie side. Would you be able to modify the code yourself to dump the JSON output just before processing fails?

wernerkarlheisenberg commented 6 years ago

Is the plugin working for you in the mean time? If not, please let me know so I can help you in dumping the JSON output.

Blizzke commented 6 years ago

Sorry about the delay. Added a dump of the get call response in the logs and weirdly enough it was an error that the login and/or password were invalid. I opened the settings and again pasted both email and password from my 1password and now it just went through. Closing.