cguZZman / plugin.googledrive

The Google Drive addon for Kodi
GNU General Public License v3.0
212 stars 72 forks source link

Error playing video with special characters. #261

Open luhanmcs opened 3 years ago

luhanmcs commented 3 years ago

"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

RedSquirrel87 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

hello how can i do this?

DVergil commented 1 year ago

I use kodi on Android TV

hungdry commented 1 year ago

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 commented 1 year ago

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