Improved docs

This commit is contained in:
litetex 2021-05-21 20:58:35 +02:00
parent 020acfed71
commit 8e08a2aac7
2 changed files with 13 additions and 5 deletions

View File

@ -12,7 +12,7 @@ import javax.annotation.Nullable;
public interface CommentsInfoItemExtractor extends InfoItemExtractor {
/**
* Return the like count of the comment, or -1 if it's unavailable<br/>
* Return the (approximate) like count of the comment, or -1 if it's unavailable<br/>
* NOTE: Currently only implemented for YT {@link YoutubeCommentsInfoItemExtractor#getLikeCount()}
* with limitations
*

View File

@ -73,10 +73,18 @@ public class YoutubeCommentsInfoItemExtractor implements CommentsInfoItemExtract
/**
* @implNote The method is parsing internally a localized string.<br/>
* This will fail for other languages than English.
* However as long as the Extractor only uses "en-GB"
* (as seen in {@link org.schabi.newpipe.extractor.services.youtube.YoutubeService#SUPPORTED_LANGUAGES})
* everything will work fine.<br/>
* <ul>
* <li>
* More than >1k likes will result in an inaccurate number
* </li>
* <li>
* This will fail for other languages than English.
* However as long as the Extractor only uses "en-GB"
* (as seen in {@link org.schabi.newpipe.extractor.services.youtube.YoutubeService#SUPPORTED_LANGUAGES})
* everything will work fine.
* </li>
* </ul>
* <br/>
* Consider using {@link #getTextualVoteCount()}
*/
@Override