DonDavici / DreamPlex

Plex client for Enigma2
73 stars 50 forks source link

die gracefully when plex is down ... #250

Closed DonDavici closed 10 years ago

DonDavici commented 10 years ago

send: 'GET /pms/system/library/sections HTTP/1.1\r\nHost: my.plexapp.com\r\nAccept-Encoding: identity\r\nX-Plex-Platform: iOS\r\nX-Plex-Client-Platform: iOS\r\nX-Plex-Device-Name: DreamPlex\r\nX-Plex-Provides: player\r\nX-Plex-Model: 8000\r\nX-Plex-Token: poaq2myxJ5ftmTQE52ui\r\nX-Plex-Platform-Version: oe20\r\nX-Plex-Client-Identifier: 13625f44-d841-4378-86a1-ed0e20a1c3c6\r\nX-Plex-Device: Dreambox\r\nX-Plex-Product: DreamPlex\r\nX-Plex-Version: 2.1.0-beta20\r\n\r\n' reply: 'HTTP/1.1 502 Bad Gateway\r\n' header: Content-Type: text/html header: Date: Mon, 20 Oct 2014 19:01:10 GMT header: Server: nginx/1.2.9 header: Content-Length: 1148 header: Connection: keep-alive Traceback (most recent call last): File "/usr/lib/enigma2/python/Components/ActionMap.py", line 46, in action res = self.actions[action]() File "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/DP_MainMenu.py", line 173, in okbuttonClick self.checkServerState() File "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/DP_MainMenu.py", line 435, in checkServerState self.session.open(DPS_ServerMenu, self.g_serverConfig) File "/usr/lib/enigma2/python/mytest.py", line 423, in open dlg = self.current_dialog = self.instantiateDialog(screen, _arguments, *_kwargs) File "/usr/lib/enigma2/python/mytest.py", line 353, in instantiateDialog return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop) File "/usr/lib/enigma2/python/mytest.py", line 384, in doInstantiateDialog dlg.applySkin() File "/usr/lib/enigma2/python/Components/GUISkin.py", line 112, in applySkin self.createGUIScreen(self.instance, self.desktop) File "/usr/lib/enigma2/python/Components/GUISkin.py", line 47, in createGUIScreen f() File "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/DP_ServerMenu.py", line 126, in getInitialData self.getServerData() File "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/DP_ServerMenu.py", line 393, in getServerData serverData = self.plexInstance.getAllSections(filterBy) File "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/DP_PlexLibrary.py", line 377, in getAllSections onDeck["contentUrl"] = self.getContentUrl(entryData['address'], "/library/onDeck") # former t_url UnboundLocalError: local variable 'entryData' referenced before assignment (PyObject_CallObject(<bound method HelpableActionMap.action of <Components.ActionMap.HelpableActionMap instance at 0x2474b70>>,('DP_MainMenuActions', 'ok')) failed) ]]>