@@ -422,8 +422,10 @@ private void findLiveChatContinuation(final JsonObject nextResponse) {
422422 private InfoItemsPage <CommentsInfoItem > fetchLiveChat (final String chatContinuation )
423423 throws IOException , ExtractionException {
424424 isLiveStream = true ;
425- ExtractorLogger .d (TAG , "fetchLiveChat() called with continuation={}" ,
426- chatContinuation != null ? chatContinuation .substring (0 , Math .min (30 , chatContinuation .length ())) : "null" );
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 );
427429 final Localization localization = getExtractorLocalization ();
428430 final byte [] json = JsonWriter .string (
429431 prepareDesktopJsonBuilder (localization , getExtractorContentCountry ())
@@ -434,8 +436,10 @@ private InfoItemsPage<CommentsInfoItem> fetchLiveChat(final String chatContinuat
434436 .done ())
435437 .getBytes (StandardCharsets .UTF_8 );
436438
437- final String endpoint = "live_chat/" + (isLiveStream ? "get_live_chat" : "get_live_chat_replay" );
438- ExtractorLogger .d (TAG , "fetchLiveChat() using endpoint={} isLiveStream={}" , endpoint , isLiveStream );
439+ final String endpoint = "live_chat/"
440+ + (isLiveStream ? "get_live_chat" : "get_live_chat_replay" );
441+ ExtractorLogger .d (TAG , "fetchLiveChat() endpoint={} isLiveStream={}" ,
442+ endpoint , isLiveStream );
439443 final JsonObject result = getJsonPostResponse (endpoint , json , localization );
440444
441445 return extractLiveChatComments (result );
0 commit comments