From 59b4eb53dea4ce73247f4c20b2b82b6c549350ce Mon Sep 17 00:00:00 2001 From: thsrite Date: Fri, 11 Aug 2023 12:18:09 +0800 Subject: [PATCH] fix TMDB_API_DOMAIN --- app/db/downloadhistory_oper.py | 2 +- app/db/plugindata_oper.py | 2 +- app/modules/themoviedb/tmdbv3api/tmdb.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/db/downloadhistory_oper.py b/app/db/downloadhistory_oper.py index e02299a5..da76f7c8 100644 --- a/app/db/downloadhistory_oper.py +++ b/app/db/downloadhistory_oper.py @@ -39,6 +39,6 @@ class DownloadHistoryOper(DbOper): def truncate(self): """ - 清空转移记录 + 清空下载记录 """ DownloadHistory.truncate(self._db) diff --git a/app/db/plugindata_oper.py b/app/db/plugindata_oper.py index b3d864e5..c60befb6 100644 --- a/app/db/plugindata_oper.py +++ b/app/db/plugindata_oper.py @@ -46,6 +46,6 @@ class PluginDataOper(DbOper): def truncate(self): """ - 清空转移记录 + 清空插件数据 """ PluginData.truncate(self._db) diff --git a/app/modules/themoviedb/tmdbv3api/tmdb.py b/app/modules/themoviedb/tmdbv3api/tmdb.py index a667dd2b..dbe66000 100644 --- a/app/modules/themoviedb/tmdbv3api/tmdb.py +++ b/app/modules/themoviedb/tmdbv3api/tmdb.py @@ -28,7 +28,6 @@ class TMDb(object): def __init__(self, obj_cached=True, session=None): if self.__class__._session is None or session is not None: self.__class__._session = requests.Session() if session is None else session - self.domain = "api.themoviedb.org" self._remaining = 40 self._reset = None self.obj_cached = obj_cached