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

UnicodeDecodeError for profile names without ASCII characters #562

Open
3 of 11 tasks
StelArian opened this issue Nov 30, 2018 · 2 comments
Open
3 of 11 tasks

UnicodeDecodeError for profile names without ASCII characters #562

StelArian opened this issue Nov 30, 2018 · 2 comments

Comments

@StelArian
Copy link

I'm submitting a ...

  • bug report
  • feature request
  • support request

General infomration

r5342284 downloaded as zip and installed as is on LibreELEC

/resources/lib/KodiHelper.py
unescaped_profile_name = html_parser.unescape(enc_profile_name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 0: ordinal not in range(128)

Description

EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

  • NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.UnicodeDecodeError'>
    Error Contents: 'ascii' codec can't decode byte 0xce in position 0: ordinal not in range(128)
    Traceback (most recent call last):
    File "/storage/.kodi/addons/plugin.video.netflix/addon.py", line 33, in
    NAVIGATION.router(paramstring=REQUEST_PARAMS)
    File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 60, in wrapped
    result = func(*args, **kwargs)
    File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 148, in router
    return self.show_profiles()
    File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/utils.py", line 60, in wrapped
    result = func(*args, **kwargs)
    File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/Navigation.py", line 592, in show_profiles
    build_url=self.build_url)
    File "/storage/.kodi/addons/plugin.video.netflix/resources/lib/KodiHelper.py", line 228, in build_profiles_listing
    unescaped_profile_name = html_parser.unescape(enc_profile_name)
    File "/usr/lib/python2.7/HTMLParser.py", line 476, in unescape
    File "/usr/lib/python2.7/re.py", line 155, in sub
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 0: ordinal not in range(128)
    -->End of Python script error report<--

Installation

  • I installed the plugin via zip from the Releases page
  • I´m using the Netflix Repo
  • I´m using a different source (Please tell which)

Operating System

  • Linux (x86/x64)
  • OSX (x86/x64)
  • Windows (x86/x64)
  • Linux (ARM)
  • Android

Additional informatin on the environment

18.0-RC1 Git:newclock5_18.0rc1-Leia
Linux ARM 32-bit
Using Release Kodi x32 build (version for Raspberry Pi)
Kodi compiled Nov 25 2018 by GCC 8.2.0 for Linux ARM 32-bit version 4.19.4 (267012)
Running on LibreELEC (official): 8.90.008 9.0, kernel: Linux ARM 32-bit version 4.19.4

Debug log

http://paste.kodi.tv/bonaruvaze

@StelArian
Copy link
Author

Just strike me. One of the profile names of my Netflix account is written Greek. I will change it to English and retest in some hours. However, if proven right, it's definitely a kind of bug. Or improvement, if you prefer. I guess you can get this kind of error from lot of languages.

@StelArian StelArian changed the title UnicodeDecodeError @ KodiHelper.py UnicodeDecodeError for profile names without ASCII characters Nov 30, 2018
@StelArian
Copy link
Author

Just strike me. One of the profile names of my Netflix account is written Greek. I will change it to English and retest in some hours. However, if proven right, it's definitely a kind of bug. Or improvement, if you prefer. I guess you can get this kind of error from lot of languages.

Verified. I rename all profiles with ASCII characters and I see the page to select profile.

I guess not crucial but will be nice to work with more than just ASCII characters.

@Essam315 Essam315 mentioned this issue Jan 25, 2019
8 tasks
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

No branches or pull requests

1 participant