mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-28 03:27:31 +08:00
Update nexus_php.py
修复'站点数据刷新'时潜在429问题
This commit is contained in:
@@ -208,9 +208,16 @@ class NexusPhpSiteUserInfo(SiteParserBase):
|
|||||||
# 是否存在下页数据
|
# 是否存在下页数据
|
||||||
next_page = None
|
next_page = None
|
||||||
next_page_text = html.xpath('//a[contains(.//text(), "下一页") or contains(.//text(), "下一頁") or contains(.//text(), ">")]/@href')
|
next_page_text = html.xpath('//a[contains(.//text(), "下一页") or contains(.//text(), "下一頁") or contains(.//text(), ">")]/@href')
|
||||||
if next_page_text:
|
|
||||||
next_page = next_page_text[-1].strip()
|
#防止识别到详情页
|
||||||
# fix up page url
|
while next_page_text:
|
||||||
|
next_page = next_page_text.pop().strip()
|
||||||
|
if not next_page.startswith('details.php'):
|
||||||
|
break;
|
||||||
|
next_page = None
|
||||||
|
|
||||||
|
# fix up page url
|
||||||
|
if next_page:
|
||||||
if self.userid not in next_page:
|
if self.userid not in next_page:
|
||||||
next_page = f'{next_page}&userid={self.userid}&type=seeding'
|
next_page = f'{next_page}&userid={self.userid}&type=seeding'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user