DonDavici / DreamPlex

Plex client for Enigma2
73 stars 50 forks source link

dp_player gs currentIndex missing #213

Closed DonDavici closed 10 years ago

DonDavici commented 10 years ago

[DreamPlex] S DP_Player::playMedia -> >>>>>>>>>> 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_View.py", line 515, in onKeyOk self.onEnter() File "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/DP_View.py", line 1235, in onEnter self.session.open(DP_Player, self.listViewList, currentIndex, self.libraryName, self.autoPlayMode, self.resumeMode, self.playbackMode, self.whatPoster) File "/usr/lib/enigma2/python/mytest.py", line 422, in open self.execBegin() File "/usr/lib/enigma2/python/mytest.py", line 320, in execBegin c.execBegin() File "/usr/lib/enigma2/python/Screens/Screen.py", line 77, in execBegin x() File "/usr/lib/enigma2/python/Plugins/Extensions/DreamPlex/DP_Player.py", line 193, in playMedia selection = self.listViewList[self.currentIndex] IndexError: list index out of range (PyObject_CallObject(<bound method HelpableActionMap.action of <Components.ActionMap.HelpableActionMap instance at 0x1ab22d8>>,('DP_View', 'ok')) failed) main thread is non-idle! display spinner!

DonDavici commented 10 years ago

the problem is that if we filter the list is shorter. we have to send the complete list to player