Conversation
Also moved the translation init functions to __init__.py
Because they are displayed on UI as b'N'....
Fixes the following error:`
Traceback (most recent call last):
File "/usr/lib/enigma2/python/Components/ActionMap.py", line 58, in action
res = self.actions[action]()
File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 146, in save
self.run()
File "/usr/lib/enigma2/python/Screens/PluginBrowser.py", line 150, in run
plugin.__call__(session=self.session)
File "/usr/lib/enigma2/python/Plugins/Extensions/WeatherMSN/plugin.py", line 2897, in main
session.open(WeatherMSN)
File "/usr/lib/enigma2/python/StartEnigma.py", line 316, in open
self.execBegin()
File "/usr/lib/enigma2/python/StartEnigma.py", line 241, in execBegin
c.show()
File "/usr/lib/enigma2/python/Screens/Screen.py", line 129, in show
x()
File "/usr/lib/enigma2/python/Plugins/Extensions/WeatherMSN/plugin.py", line 671, in get_weather_data
self.get_xmlfile()
File "/usr/lib/enigma2/python/Plugins/Extensions/WeatherMSN/plugin.py", line 658, in get_xmlfile
downloadPage(xmlfile, "/tmp/weathermsn1.xml").addCallback(self.downloadFinished).addErrback(self.downloadFailed)
File "/usr/lib/python3.9/site-packages/twisted/python/deprecate.py", line 298, in deprecatedFunction
return function(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 829, in downloadPage
return _makeGetterFactory(
File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 760, in _makeGetterFactory
uri = URI.fromBytes(_ensureValidURI(url.strip()))
File "/usr/lib/python3.9/site-packages/twisted/web/_newclient.py", line 634, in _ensureValidURI
if _VALID_URI.match(uri):
TypeError: cannot use a bytes pattern on a string-like object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also moved the translation init functions to init.py