feat:tvdb模块重写,更换tvdbv4 api,增加搜索能力

sonarr /series/lookup接口重写,直接用标题在tvdb查询剧集
This commit is contained in:
TimoYoung
2025-05-27 17:32:25 +08:00
parent f740fed5f2
commit fc96cfe8a0
6 changed files with 592 additions and 1183 deletions
+13
View File
@@ -0,0 +1,13 @@
from typing import List
from app.chain import ChainBase
from app.utils.singleton import Singleton
class TvdbChain(ChainBase, metaclass=Singleton):
"""
Tvdb处理链,单例运行
"""
def get_tvdbid_by_name(self, title: str) -> List[int]:
tvdb_info_list = self.run_module("search_tvdb", title=title)
return [int(item["tvdb_id"]) for item in tvdb_info_list]