I recently experienced a problem with MyTube.
When searching, often results are found and displayed, but sometimes no results are displayed and the screen shows 'fetching search entries' forever.
Making an enigma2 log, the cause seems to be an unhandled exception in /usr/lib/enigma2/python/Plugins/SystemPlugins/TubeLib/youtube/Videos.py.
This is the crashlog.
Code
Apr 10 20:10:56 dm7080 enigma2[760]: status is FALSE,switchToHistory
Apr 10 20:10:56 dm7080 enigma2[760]: switchToHistory
Apr 10 20:10:56 dm7080 enigma2[760]: switchToHistory currentlist historylist
Apr 10 20:10:56 dm7080 enigma2[760]: switchToHistory oldlist feedlist
Apr 10 20:10:56 dm7080 enigma2[760]: activate
Apr 10 20:10:56 dm7080 enigma2[760]: self.history ['i love thailand', 'ngoa tv', '2020 entertainment', 'nake', 'kidzaaatv', 'www.onehd.net', 'borntvofficial', 'tv3 official', 'polyplus', 'woodytalk']
Apr 10 20:10:56 dm7080 enigma2[760]: create buffer for widget 1230 x 800
Apr 10 20:10:57 dm7080 enigma2[760]: It's now Mon 10 Apr 2017 20:10:56 CEST
Apr 10 20:10:57 dm7080 enigma2[760]: [timer.py] next activation: 1491847957 (in 99999 ms)
Apr 10 20:10:57 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:10:57 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:10:57 dm7080 enigma2[760]: down
Apr 10 20:10:57 dm7080 enigma2[760]: ngoa tv
Apr 10 20:10:58 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:10:58 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:10:58 dm7080 enigma2[760]: down
Apr 10 20:10:58 dm7080 enigma2[760]: 2020 entertainment
Apr 10 20:10:58 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:10:58 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:10:58 dm7080 enigma2[760]: down
Apr 10 20:10:58 dm7080 enigma2[760]: nake
Apr 10 20:10:58 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:10:58 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:10:58 dm7080 enigma2[760]: down
Apr 10 20:10:58 dm7080 enigma2[760]: kidzaaatv
Apr 10 20:10:59 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:10:59 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:10:59 dm7080 enigma2[760]: down
Apr 10 20:10:59 dm7080 enigma2[760]: www.onehd.net
Apr 10 20:10:59 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:10:59 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:10:59 dm7080 enigma2[760]: down
Apr 10 20:10:59 dm7080 enigma2[760]: borntvofficial
Apr 10 20:10:59 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:10:59 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:10:59 dm7080 enigma2[760]: down
Apr 10 20:10:59 dm7080 enigma2[760]: tv3 official
Apr 10 20:11:00 dm7080 enigma2[760]: action -> WizardActions down
Apr 10 20:11:00 dm7080 enigma2[760]: self.currList im KeyDown historylist
Apr 10 20:11:00 dm7080 enigma2[760]: down
Apr 10 20:11:00 dm7080 enigma2[760]: polyplus
Apr 10 20:11:02 dm7080 enigma2[760]: action -> WizardActions ok
Apr 10 20:11:02 dm7080 enigma2[760]: self.currList im KeyOK historylist
Apr 10 20:11:02 dm7080 enigma2[760]: polyplus
Apr 10 20:11:02 dm7080 enigma2[760]: Search searchcontext polyplus
Apr 10 20:11:02 dm7080 enigma2[760]: Genuine Dreambox validation passed
Apr 10 20:11:02 dm7080 enigma2[760]: deactivate
Apr 10 20:11:03 dm7080 enigma2[760]: [MyTubePlayer] gotFeed
Apr 10 20:11:03 dm7080 enigma2[760]: Unhandled Error
Apr 10 20:11:03 dm7080 enigma2[760]: Traceback (most recent call last):
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/e2reactor.py", line 191, in mainLoop
Apr 10 20:11:03 dm7080 enigma2[760]: runMainloop()
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/enigma.py", line 7542, in __call__
Apr 10 20:11:03 dm7080 enigma2[760]: return ret(*args, **kwargs)
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/e2reactor.py", line 62, in read
Apr 10 20:11:03 dm7080 enigma2[760]: self.reactor.simulate()
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/e2reactor.py", line 160, in simulate
Apr 10 20:11:03 dm7080 enigma2[760]: self.runUntilCurrent()
Apr 10 20:11:03 dm7080 enigma2[760]: --- <exception caught here> ---
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 797, in runUntilCurrent
Apr 10 20:11:03 dm7080 enigma2[760]: f(*a, **kw)
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/SystemPlugins/TubeLib/youtube/ThreadedRequest.py", line 36, in _finish
Apr 10 20:11:03 dm7080 enigma2[760]: self._callback(success, data)
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/SystemPlugins/TubeLib/youtube/YoutubeQueryBase.py", line 21, in __onResult
Apr 10 20:11:03 dm7080 enigma2[760]: self._onResult(success, data)
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/SystemPlugins/TubeLib/youtube/Videos.py", line 51, in _onResult
Apr 10 20:11:03 dm7080 enigma2[760]: self._callback(success, videos, data)
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/Extensions/MyTube/plugin.py", line 1068, in gotSearchFeed
Apr 10 20:11:03 dm7080 enigma2[760]: self.gotFeed(success, feed, data)
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/Extensions/MyTube/plugin.py", line 1052, in gotFeed
Apr 10 20:11:03 dm7080 enigma2[760]: self.buildEntryList()
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/Extensions/MyTube/plugin.py", line 1087, in buildEntryList
Apr 10 20:11:03 dm7080 enigma2[760]: self.videolist.append(self.buildEntryComponent(video, video_id))
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/Extensions/MyTube/plugin.py", line 1138, in buildEntryComponent
Apr 10 20:11:03 dm7080 enigma2[760]: Views = entry.views
Apr 10 20:11:03 dm7080 enigma2[760]: File "/usr/lib/enigma2/python/Plugins/SystemPlugins/TubeLib/youtube/Videos.py", line 99, in getViews
Apr 10 20:11:03 dm7080 enigma2[760]: return str(self._entry["statistics"]["viewCount"])
Apr 10 20:11:03 dm7080 enigma2[760]: exceptions.KeyError: 'statistics'
Alles anzeigen
The problem might be caused by missing 'statistics' in the YouTube search results, but since the communication is secured https, I have no easy way of intercepting and examining the results.
Has anyone noticed this problem or have a clue how we can fix it?
Perhaps Stephan Reichholf ( Reichi)?
Adri.