1414import org .schabi .newpipe .extractor .linkhandler .ListLinkHandler ;
1515import org .schabi .newpipe .extractor .localization .Localization ;
1616import org .schabi .newpipe .extractor .localization .TimeAgoParser ;
17- import org .schabi .newpipe .extractor .utils .ExtractorLogger ;
1817import org .schabi .newpipe .extractor .utils .JsonUtils ;
1918import org .schabi .newpipe .extractor .utils .Utils ;
2019
@@ -67,7 +66,6 @@ public InfoItemsPage<CommentsInfoItem> getInitialPage()
6766 throws IOException , ExtractionException {
6867
6968 if (commentsDisabled && liveChatContinuation != null ) {
70- ExtractorLogger .d (TAG , "getInitialPage() routing to live chat" );
7169 return fetchLiveChat (liveChatContinuation );
7270 }
7371
@@ -214,7 +212,6 @@ public InfoItemsPage<CommentsInfoItem> getPage(final Page page)
214212 if ("live_chat" .equals (page .getUrl ())
215213 || (commentsDisabled && liveChatContinuation != null )) {
216214 isLiveStream = true ;
217- ExtractorLogger .d (TAG , "getPage() live chat detected, isLiveStream=true" );
218215 return fetchLiveChat (page .getId ());
219216 }
220217
@@ -422,10 +419,6 @@ private void findLiveChatContinuation(final JsonObject nextResponse) {
422419 private InfoItemsPage <CommentsInfoItem > fetchLiveChat (final String chatContinuation )
423420 throws IOException , ExtractionException {
424421 isLiveStream = true ;
425- final String contPreview = chatContinuation != null
426- ? chatContinuation .substring (0 , Math .min (30 , chatContinuation .length ()))
427- : "null" ;
428- ExtractorLogger .d (TAG , "fetchLiveChat() called with continuation={}" , contPreview );
429422 final Localization localization = getExtractorLocalization ();
430423 final byte [] json = JsonWriter .string (
431424 prepareDesktopJsonBuilder (localization , getExtractorContentCountry ())
@@ -438,8 +431,6 @@ private InfoItemsPage<CommentsInfoItem> fetchLiveChat(final String chatContinuat
438431
439432 final String endpoint = "live_chat/"
440433 + (isLiveStream ? "get_live_chat" : "get_live_chat_replay" );
441- ExtractorLogger .d (TAG , "fetchLiveChat() endpoint={} isLiveStream={}" ,
442- endpoint , isLiveStream );
443434 final JsonObject result = getJsonPostResponse (endpoint , json , localization );
444435
445436 return extractLiveChatComments (result );
@@ -503,11 +494,8 @@ private InfoItemsPage<CommentsInfoItem> extractLiveChatComments(
503494 nextPage = null ;
504495 }
505496
506- ExtractorLogger .d (TAG , "extractLiveChatComments() extracted={} nextPage={}" ,
507- collector .getItems ().size (), nextPage != null );
508497 return new InfoItemsPage <>(collector , nextPage );
509498 } catch (final Exception e ) {
510- ExtractorLogger .e (TAG , "extractLiveChatComments() failed" , e );
511499 return getInfoItemsPageForDisabledComments ();
512500 }
513501 }
0 commit comments