Merge pull request #928 from FireMasterK/comment-urls

Parse YouTube comments as HTML
This commit is contained in:
Stypox
2022-11-27 19:16:34 +01:00
committed by GitHub

View File

@@ -184,7 +184,7 @@ public class YoutubeCommentsInfoItemExtractor implements CommentsInfoItemExtract
// https://github.com/TeamNewPipe/NewPipeExtractor/issues/380#issuecomment-668808584 // https://github.com/TeamNewPipe/NewPipeExtractor/issues/380#issuecomment-668808584
return ""; return "";
} }
final String commentText = getTextFromObject(contentText); final String commentText = getTextFromObject(contentText, true);
// YouTube adds U+FEFF in some comments. // YouTube adds U+FEFF in some comments.
// eg. https://www.youtube.com/watch?v=Nj4F63E59io<feff> // eg. https://www.youtube.com/watch?v=Nj4F63E59io<feff>
return Utils.removeUTF8BOM(commentText); return Utils.removeUTF8BOM(commentText);