mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-05-11 18:10:15 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2944c343a8 | ||
|
|
940cc566c8 | ||
|
|
db7b2cdcac | ||
|
|
8111cf5dc8 |
@@ -624,13 +624,16 @@ class DoubanModule(_ModuleBase):
|
|||||||
# 搜索
|
# 搜索
|
||||||
logger.info(f"开始使用名称 {name} 匹配豆瓣信息 ...")
|
logger.info(f"开始使用名称 {name} 匹配豆瓣信息 ...")
|
||||||
result = self.doubanapi.search(f"{name} {year or ''}".strip())
|
result = self.doubanapi.search(f"{name} {year or ''}".strip())
|
||||||
if not result or not result.get("items"):
|
if not result:
|
||||||
logger.warn(f"未找到 {name} 的豆瓣信息")
|
logger.warn(f"未找到 {name} 的豆瓣信息")
|
||||||
return {}
|
return {}
|
||||||
# 触发rate limit
|
# 触发rate limit
|
||||||
if "search_access_rate_limit" in result.values():
|
if "search_access_rate_limit" in result.values():
|
||||||
logger.warn(f"触发豆瓣API速率限制 错误信息 {result} ...")
|
logger.warn(f"触发豆瓣API速率限制,错误信息:{result} ...")
|
||||||
raise Exception("触发豆瓣API速率限制")
|
return {}
|
||||||
|
if not result.get("items"):
|
||||||
|
logger.warn(f"未找到 {name} 的豆瓣信息")
|
||||||
|
return {}
|
||||||
for item_obj in result.get("items"):
|
for item_obj in result.get("items"):
|
||||||
type_name = item_obj.get("type_name")
|
type_name = item_obj.get("type_name")
|
||||||
if type_name not in [MediaType.TV.value, MediaType.MOVIE.value]:
|
if type_name not in [MediaType.TV.value, MediaType.MOVIE.value]:
|
||||||
|
|||||||
21
database/versions/a40261701909_1_0_20.py
Normal file
21
database/versions/a40261701909_1_0_20.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
"""1.0.20
|
||||||
|
|
||||||
|
Revision ID: a40261701909
|
||||||
|
Revises: ae9d8ed8df97
|
||||||
|
Create Date: 2024-05-22 19:16:21.374806
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
# revision identifiers, used by Alembic.
|
||||||
|
revision = 'a40261701909'
|
||||||
|
down_revision = None
|
||||||
|
branch_labels = None
|
||||||
|
depends_on = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade() -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade() -> None:
|
||||||
|
pass
|
||||||
@@ -1 +1 @@
|
|||||||
APP_VERSION = 'v2.0.0-alpha'
|
APP_VERSION = 'v1.9.9'
|
||||||
|
|||||||
Reference in New Issue
Block a user