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

Error playing video with special characters. #261

Open
luhanmcs opened this issue Aug 6, 2021 · 7 comments
Open

Error playing video with special characters. #261

luhanmcs opened this issue Aug 6, 2021 · 7 comments

Comments

@luhanmcs
Copy link

luhanmcs commented Aug 6, 2021

"ascii' codec can't encode characters in position 46-47: ordinal not in range"
Error playing video with special characters.
Error happens on windows and android.
Kodi 18.9 works fine.
https://paste.kodi.tv/oyusanuqir
screenshot00001

@luhanmcs luhanmcs changed the title ascii' codec can't encode characters in position 46-47: ordinal not in range Error playing video with special characters. Aug 6, 2021
@RedSquirrel87
Copy link

I get the same error, for example with every "pokémon" movie (because of the "é" char). I didn't think it was such a long-date bug (I see it was reported in August), any news about it or how to fix this?

@RedSquirrel87
Copy link

Ok, I just analyzed the source code, to solve this issue just replace the following string at "resources/lib/addon.py"
response_params = dict(urllib.parse.parse_qsl(response_text))
with
response_params = dict(urllib.parse.parse_qsl(response_text.decode('ASCII')))
and then it will work

@andreus1610
Copy link

Yes It happened to me too! This happens when you try to open a file that contains an accent and in the configurations you have set a stream format other than Original.

Your change on the addon.py file appears to work.

Thanks!

Ok, I just analyzed the source code, to solve this issue just replace the following string at "resources/lib/addon.py" response_params = dict(urllib.parse.parse_qsl(response_text)) with response_params = dict(urllib.parse.parse_qsl(response_text.decode('ASCII'))) and then it will work

@DVergil
Copy link

DVergil commented Feb 16, 2023

hello how can i do this?

@DVergil
Copy link

DVergil commented Feb 16, 2023

I use kodi on Android TV

@hungdry
Copy link

hungdry commented Sep 6, 2023

Ok, I just analyzed the source code, to solve this issue just replace the following string at "resources/lib/addon.py" response_params = dict(urllib.parse.parse_qsl(response_text)) with response_params = dict(urllib.parse.parse_qsl(response_text.decode('ASCII'))) and then it will work

It works for me. Thanks

@hungdry
Copy link

hungdry commented Sep 6, 2023

I use kodi on Android TV

Download code as zip file
Edit the line that RedSquirrel87 mentioned and zip again
Send that modified zip file to your box/android TV
Kodi -> setting -> add-on -> install from zip file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants