mx3L / subssupport

GNU General Public License v2.0
7 stars 27 forks source link

Fix twisted crash error ... #61

Closed fairbird closed 4 years ago

fairbird commented 4 years ago

Thank you (athoik) https://github.com/mx3L/subssupport/issues/60#issuecomment-605648814

Fix this crash .. Traceback (most recent call last): File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/e2_utils.py", line 76, in selectionChanged return ConfigList.selectionChanged(self) File "/usr/lib/enigma2/python/Components/ConfigList.py", line 72, in selectionChanged File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/subtitles.py", line 3426, in onSelect self.getSuggestions() File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/subtitles.py", line 3533, in getSuggestions self.__suggestions = self.suggestionsClass().getSuggestions(self.value, self.propagateSuggestions, self.gotSuggestionsError) File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/subtitles.py", line 3245, in getSuggestions d = self._getSuggestions(queryString) File "/usr/lib/enigma2/python/Plugins/Extensions/SubsSupport/subtitles.py", line 3269, in _getSuggestions return client.getPage(query, timeout=6) File "/usr/lib/python2.7/site-packages/twisted/python/deprecate.py", line 301, in deprecatedFunction File "/usr/lib/python2.7/site-packages/twisted/web/client.py", line 795, in getPage File "/usr/lib/python2.7/site-packages/twisted/web/client.py", line 742, in _makeGetterFactory File "/usr/lib/python2.7/site-packages/twisted/web/_newclient.py", line 648, in _ensureValidURI ValueError: Invalid URI 'http://www.opensubtitles.org/libs/suggest.php?format=json2&SubLanguageID=null&MovieName=Marie Antoinette' < 19430.166> [ePyObject] (CallObject(<bound method MyConfigList.selectionChanged of <Plugins.Extensions.SubsSupport.e2_utils.MyConfigList object at 0xaec95410>>,()) failed)