-
-
Notifications
You must be signed in to change notification settings - Fork 506
[YouTube] Add comment reply count support #936
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
Conversation
TobiGr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for that addition.
Please implement the tests for YouTube.
The reply count should also be extracted for the other services (e.g. PeerTube).
extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java
Outdated
Show resolved
Hide resolved
AudricV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional changes that should be made.
Also, please remove the unneeded JavaDoc changes, which were probably made by your IDE.
extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java
Outdated
Show resolved
Hide resolved
extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java
Outdated
Show resolved
Hide resolved
extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java
Outdated
Show resolved
Hide resolved
Co-authored-by: AudricV <[email protected]> Co-authored-by: AudricV <[email protected]>
Restored |
TobiGr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small things from my end
...g/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Tobi <[email protected]>
Implementing this for PeerTube should be the same effort as you had with YouTube - less than ten lines. Can you please take care of it? |
We even not support get the PeerTube comment reply. |
|
I think the pull request is ready been merge, is there any questions? |
...g/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java
Show resolved
Hide resolved
|
I added a commit to fix exceptions when comments do not have replies and thus no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. LGTM now
AudricV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few changes remaining and this can be merged in my opinion.
Thank you for this feature!
...g/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsInfoItemExtractor.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java
Outdated
Show resolved
Hide resolved
AudricV
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you very much!
Please avoid in the future writing usernames with @ in commits, as if they contain these usernames in this form, you would probably send a GitHub notification each time the commits are rebased and/or pushed (that's what happened for me with your latest commits), including in repositories forks if I am not wrong.
This PR will be merged using the Squash and merge command.
|
Ok, I'll, usernames with @ in commits is github auto add it here, I don't know why github do that, so I keep it here. |
Add comment reply count support, just like youtube.
Fix #935