Skip to content

Commit 6860543

Browse files
committed
Added more doc
1 parent a59fead commit 6860543

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ public class YoutubeCommentsExtractor extends CommentsExtractor {
4343
private String ytClientName;
4444
private String responseBody;
4545

46+
/**
47+
* Caching mechanism and holder of the commentsDisabled value.
48+
* <br/>
49+
* Initial value = empty -> unknown if comments are disabled or not<br/>
50+
* Some method calls {@link YoutubeCommentsExtractor#findInitialCommentsToken()}
51+
* -> value is set<br/>
52+
* If the method or another one that is depending on disabled comments
53+
* is now called again, the method execution can avoid unnecessary calls
54+
*/
4655
private Optional<Boolean> optCommentsDisabled = Optional.empty();
4756

4857
public YoutubeCommentsExtractor(

0 commit comments

Comments
 (0)