Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mediadownloader] encode url if need #1005

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

Dima73
Copy link
Contributor

@Dima73 Dima73 commented Oct 8, 2024

Traceback (most recent call last):
File "/usr/lib/enigma2/python/StartEnigma.py", line 217, in processDelay callback(*retval)
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/MediaDownloader.py", line 191, in gotFilename
self.fetchFile()
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/MediaDownloader.py", line 198, in fetchFile
d = download(
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/MediaDownloader.py", line 116, in download
factory = HTTPProgressDownloader(url, file, writeProgress, *args, **kwargs)
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/HTTPProgressDownloader.py", line 8, in init
HTTPDownloader.init(self, url, fileOrName, *args, **kwargs) File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 515, in init
File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 375, in init
File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 398, in setURL
File "/usr/lib/python3.9/site-packages/twisted/web/_newclient.py", line 634, in _ensureValidURI
TypeError: cannot use a bytes pattern on a string-like object

Traceback (most recent call last):
File "/usr/lib/enigma2/python/StartEnigma.py", line 217, in processDelay
callback(*retval)
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/MediaDownloader.py",
line 191, in gotFilename
self.fetchFile()
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/MediaDownloader.py",
line 198, in fetchFile
d = download(
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/MediaDownloader.py",
line 116, in download
factory = HTTPProgressDownloader(url, file, writeProgress, *args,
**kwargs)
File
"/usr/lib/enigma2/python/Plugins/Extensions/MediaDownloader/HTTPProgressDownloader.py",
line 8, in init
HTTPDownloader.init(self, url, fileOrName, *args, **kwargs)
File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 515,
in init
File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 375,
in init
File "/usr/lib/python3.9/site-packages/twisted/web/client.py", line 398,
in setURL
File "/usr/lib/python3.9/site-packages/twisted/web/_newclient.py", line
634, in _ensureValidURI
TypeError: cannot use a bytes pattern on a string-like object
@littlesat littlesat merged commit 054301c into OpenPLi:python3 Oct 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants