Skip to content

Commit 4d1ea24

Browse files
committed
Improve comments
1 parent b6b3950 commit 4d1ea24

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public String getName() throws ParsingException {
136136

137137
@Override
138138
public long getDuration() throws ParsingException {
139-
// Duration can not be extract from live streams, only from normal videos
139+
// Duration cannot be extracted for live streams, but only for normal videos
140140
if (isLive()) {
141141
return -1;
142142
}

extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfoItemExtractor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ public interface StreamInfoItemExtractor extends InfoItemExtractor {
5656
long getDuration() throws ParsingException;
5757

5858
/**
59-
* Parses the number of views
59+
* Parses the number of views (or of current viewers in case of live streams)
6060
*
61-
* @return the number of views or -1 if not available
61+
* @return the number of views (or of current viewers in case of live streams) or -1 if not
62+
* available
6263
* @throws ParsingException if there is an error in the extraction
6364
*/
6465
long getViewCount() throws ParsingException;

0 commit comments

Comments
 (0)