mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] AdultContentDetector, PixivURL 整理代码, 补充Javadoc;
This commit is contained in:
parent
4c03a0f7d9
commit
0fafddc715
@ -26,7 +26,7 @@ public interface AdultContentDetector {
|
|||||||
* @param isUgoira 是否为动图
|
* @param isUgoira 是否为动图
|
||||||
* @param pageIndex 指定页数, 设为0或负数则视为单页面作品
|
* @param pageIndex 指定页数, 设为0或负数则视为单页面作品
|
||||||
* @param threshold 指数阀值, 当等于或大于该阀值时返回true.
|
* @param threshold 指数阀值, 当等于或大于该阀值时返回true.
|
||||||
* @return 如果为true则为成人作品, 该方法将由 threshold 参数决定是否为成人作品.
|
* @return 如果为true则为成人作品, 该方法将由 threshold 参数决定是否为成人作品(如果超过阈值, 则为true).
|
||||||
*/
|
*/
|
||||||
boolean isAdultContent(int illustId, boolean isUgoira, int pageIndex, double threshold) throws Exception;
|
boolean isAdultContent(int illustId, boolean isUgoira, int pageIndex, double threshold) throws Exception;
|
||||||
|
|
||||||
|
@ -173,6 +173,7 @@ public class PixivURL {
|
|||||||
/**
|
/**
|
||||||
* 查询用户收藏.<br/>
|
* 查询用户收藏.<br/>
|
||||||
* 该URL返回HTML页面,需要进行解析.<br/>
|
* 该URL返回HTML页面,需要进行解析.<br/>
|
||||||
|
* <p>注意: 该接口需要登陆</p>
|
||||||
* 需要替换的文本:<br/>
|
* 需要替换的文本:<br/>
|
||||||
* {pageIndex} - 页数, 超出了则结果为空<br/>
|
* {pageIndex} - 页数, 超出了则结果为空<br/>
|
||||||
*/
|
*/
|
||||||
@ -345,6 +346,7 @@ public class PixivURL {
|
|||||||
* @param mode 要检查的RankingMode项
|
* @param mode 要检查的RankingMode项
|
||||||
* @return 如果支持返回true
|
* @return 如果支持返回true
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
|
||||||
public boolean isSupportedMode(RankingMode mode) {
|
public boolean isSupportedMode(RankingMode mode) {
|
||||||
return Arrays.binarySearch(supportedMode, mode) >= 0;
|
return Arrays.binarySearch(supportedMode, mode) >= 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user