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

WebsiteParsingError #1706

Open
M95D opened this issue Jun 27, 2024 · 7 comments
Open

WebsiteParsingError #1706

M95D opened this issue Jun 27, 2024 · 7 comments
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it

Comments

@M95D
Copy link

M95D commented Jun 27, 2024

Netflix add-on version

1.12.14

Operative systems used

LibreELEC

Kodi version used

Kodi 18 (Leia)

Description of the bug

Hi.
2 days ago I couldn't open Netflix anymore. It also failed on my browsers with a browser version error. I could fix it by updating this piece of code with new version strings:

    chrome_version = 'Chrome/125.0.0.0'
    base = 'Mozilla/5.0 '
    base += '%PL% '
    base += 'AppleWebKit/537.36 (KHTML, like Gecko) '
    base += '%CH_VER% Safari/537.36'.replace('%CH_VER%', chrome_version)

    if system in ['osx', 'ios', 'tvos']:
        return base.replace('%PL%', '(Macintosh; Intel Mac OS X 10_15_5)')
    if system in ['windows', 'uwp']:
        return base.replace('%PL%', '(Windows NT 10.0; Win64; x64)')
    # ARM based Linux
    if get_machine().startswith('arm'):
        # Last number is the platform version of Chrome OS
        return base.replace('%PL%', '(X11; CrOS x86_64 14541.0.0)')
    # x86 Linux
    return base.replace('%PL%', '(X11; Linux x86_64)')

But after this, there was a key error. I tried to generate a new auth key and login, but there's a new error: "WebsiteParsingError: E-mail field not found".
I'm unable to fix this one. Please help.
I know that this version is old, but I can't update. LibreELEC v10+ is broken in so many ways...

Steps to reproduce the behavior

No response

Debug log - mandatory

https://paste.kodi.tv/ajoledoxed.kodi

Possible fix

No response

Additional context

No response

Screenshots

No response

@M95D M95D added Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it labels Jun 27, 2024
@M95D
Copy link
Author

M95D commented Jun 28, 2024

As a workaround, I hardcoded my email address in resources/lib/services/nfsession/session/access.py, after the failed regex match and it works once again.

@vcrocher
Copy link

I had the same issue (same versions of Kodi and add-on) and @M95D workaround works well. Not ideal indeed, but it works!

@dunno101
Copy link

I have the same issue for over a week now and am pretty much lost. Could you @M95D or @vcrocher therefore please explain for noobs how to hardcode one's email address exactly? Cheers.

@M95D
Copy link
Author

M95D commented Jul 21, 2024

Edit resources/lib/services/nfsession/session/access.py in the netflix plugin directory. Search for this line: # Get the account e-mail. After that, there's a email = ... line. Replace that with your email address in simple quotes:
email = '[email protected]'

You probably also need to update version strings from resources/lib/common/device_utils.py - see my first post.

Remember to do a reboot after you edit the files.

@vcrocher
Copy link

Unfortunately I posted too quickly: editing the access.py file and setting the email in clear in two places in it does allow me to log in and browse the Netflix content but this still fails to play anything. A new error (wrong password/email) shows up when trying to play.
So, the fix doesn't work for me.
Maybe @M95D have managed to get it work fully? I would be curious of the details of the process too.

@paulvt
Copy link

paulvt commented Aug 9, 2024

Probably also related: #1689
It feels like things have moved around since then.

@Peelpolicerapedme
Copy link

Hello. I need help please and thank you. Trying to get Netflix to work just payed for subscription and this is giving me websiteparsingerror please help 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

5 participants