diff --git a/src/nicelee/bilibili/parsers/impl/URL4ChannelCollectionParserEx.java b/src/nicelee/bilibili/parsers/impl/URL4ChannelCollectionParserEx.java index 5ca1e01e..27146a55 100644 --- a/src/nicelee/bilibili/parsers/impl/URL4ChannelCollectionParserEx.java +++ b/src/nicelee/bilibili/parsers/impl/URL4ChannelCollectionParserEx.java @@ -13,6 +13,7 @@ import nicelee.bilibili.enums.VideoQualityEnum; import nicelee.bilibili.model.ClipInfo; import nicelee.bilibili.model.VideoInfo; +import nicelee.bilibili.util.HttpCookies; import nicelee.bilibili.util.HttpHeaders; import nicelee.bilibili.util.Logger; @@ -87,7 +88,7 @@ protected boolean query(int page, int min, int max, Object... obj) { // 在第一部BV里面补全up的信息,并得到所有合集 String urlBV = "https://www.bilibili.com/video/" + firstBV; - String html = util.getContent(urlBV, new HttpHeaders().getCommonHeaders("www.bilibili.com")); + String html = util.getContent(urlBV, new HttpHeaders().getCommonHeaders("www.bilibili.com"), HttpCookies.globalCookiesWithFingerprint()); int begin = html.indexOf("window.__INITIAL_STATE__="); int end = html.indexOf(";(function()", begin); String result = html.substring(begin + 25, end);