mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
fix
This commit is contained in:
@@ -56,4 +56,3 @@ class FilterMediasAction(BaseAction):
|
|||||||
|
|
||||||
self.job_done()
|
self.job_done()
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class Alist(StorageBase, metaclass=Singleton):
|
|||||||
缓存2天,提前5分钟更新
|
缓存2天,提前5分钟更新
|
||||||
"""
|
"""
|
||||||
conf = self.get_conf()
|
conf = self.get_conf()
|
||||||
token = conf.get("token")
|
token = conf.get("token")
|
||||||
if token:
|
if token:
|
||||||
return str(token)
|
return str(token)
|
||||||
resp: Response = RequestUtils(headers={
|
resp: Response = RequestUtils(headers={
|
||||||
|
|||||||
@@ -207,13 +207,14 @@ 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')
|
||||||
#防止识别到详情页
|
|
||||||
|
# 防止识别到详情页
|
||||||
while next_page_text:
|
while next_page_text:
|
||||||
next_page = next_page_text.pop().strip()
|
next_page = next_page_text.pop().strip()
|
||||||
if not next_page.startswith('details.php'):
|
if not next_page.startswith('details.php'):
|
||||||
break;
|
break
|
||||||
next_page = None
|
next_page = None
|
||||||
|
|
||||||
# fix up page url
|
# fix up page url
|
||||||
|
|||||||
@@ -7,9 +7,8 @@ Create Date: 2024-12-24 13:29:32.225532
|
|||||||
"""
|
"""
|
||||||
import contextlib
|
import contextlib
|
||||||
|
|
||||||
from alembic import op
|
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy.dialects import sqlite
|
from alembic import op
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
# revision identifiers, used by Alembic.
|
||||||
revision = '55390f1f77c1'
|
revision = '55390f1f77c1'
|
||||||
|
|||||||
@@ -7,9 +7,8 @@ Create Date: 2025-02-06 18:28:00.644571
|
|||||||
"""
|
"""
|
||||||
import contextlib
|
import contextlib
|
||||||
|
|
||||||
from alembic import op
|
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy.dialects import sqlite
|
from alembic import op
|
||||||
|
|
||||||
# revision identifiers, used by Alembic.
|
# revision identifiers, used by Alembic.
|
||||||
revision = 'ca5461f314f2'
|
revision = 'ca5461f314f2'
|
||||||
|
|||||||
Reference in New Issue
Block a user