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

[YouTube] Fix ParsingException when comments are unavailable in a video #1040

Merged

Conversation

bjoernls
Copy link
Contributor

@bjoernls bjoernls commented Mar 14, 2023

Issue #969. Parsing exception is handled when the JSON path does not exist in the case of disabled comments.

  • I carefully read the contribution guidelines and agree to them.
  • I have tested the API against NewPipe.
  • I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API.

Fixes #969

The output is now
{"comments":[],"nextpage":null,"disabled":true}

Issue TeamNewPipe#969. Parsing exception is handled when the JSON path does not exist in the case of disabled comments.
Copy link
Member

@AudricV AudricV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this fix!

Please use appropriate PR and commit names in the future: do not repeat the issue title but describe what you did for both things (so in this case it would be something like "[YouTube] Fix ParsingException when getting comments on videos without comments").

@AudricV AudricV added bug Issue is related to a bug youtube service, https://www.youtube.com/ labels Mar 14, 2023
@FireMasterK FireMasterK requested a review from AudricV March 21, 2023 16:11
@AudricV AudricV changed the title When comments are unavailable in a video, we get a ParsingException [YouTube] Fix ParsingException when comments are unavailable in a video Mar 30, 2023
@AudricV AudricV merged commit 1b6fe5e into TeamNewPipe:dev Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug youtube service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[YouTube] ParsingException thrown when comments are unavailable in a video
3 participants