Skip to content

Commit 620b756

Browse files
committed
Fix fetchLiveChat using replay endpoint on fresh extractors
1 parent 05a8d36 commit 620b756

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeCommentsExtractor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public InfoItemsPage<CommentsInfoItem> getPage(final Page page)
210210

211211
if ("live_chat".equals(page.getUrl())
212212
|| (commentsDisabled && liveChatContinuation != null)) {
213+
isLiveStream = true;
213214
return fetchLiveChat(page.getId());
214215
}
215216

@@ -416,6 +417,7 @@ private void findLiveChatContinuation(final JsonObject nextResponse) {
416417
*/
417418
private InfoItemsPage<CommentsInfoItem> fetchLiveChat(final String chatContinuation)
418419
throws IOException, ExtractionException {
420+
isLiveStream = true;
419421
final Localization localization = getExtractorLocalization();
420422
final byte[] json = JsonWriter.string(
421423
prepareDesktopJsonBuilder(localization, getExtractorContentCountry())

0 commit comments

Comments
 (0)