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

[crunchyroll] Fix json.decoder.JSONDecodeError: Extra data #29897

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Trigus42
Copy link

@Trigus42 Trigus42 commented Sep 1, 2021

Before submitting a pull request make sure you have:

If "Covered the code with tests" means, that I tested it myself by running it, then I have done that too.

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense

What is the purpose of your pull request?

  • Bug fix

Fix an error with the JSON decoder that occurs when webpage contains a JSON with multiple records.

For example:

Page.messaging_box_controller.addItems([{"type":"error","message_body":"Dieses Video ist in deiner Region nicht verf\u00fcgbar.","message_body_html":"Dieses Video ist in deiner Region nicht verf\u00fcgbar.","data":null},{"type":"error","message_body":"Dieses Video ist in deiner Region nicht verf\u00fcgbar.","message_body_html":"Dieses Video ist in deiner Region nicht verf\u00fcgbar.","data":null},{"type":"error","message_body":"Dieses Video ist in deiner Region nicht verf\u00fcgbar.","message_body_html":"Dieses Video ist in deiner Region nicht verf\u00fcgbar.","data":null}]);

Fix an error that occurs when `webpage` contains a JSON with multiple records.
@Trigus42 Trigus42 changed the title Fix json.decoder.JSONDecodeError: Extra data [crunchyroll] Fix json.decoder.JSONDecodeError: Extra data Sep 1, 2021
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.

None yet

2 participants