Merge pull request #67 from thsrite/main

This commit is contained in:
jxxghp 2023-08-11 12:30:06 +08:00 committed by GitHub
commit 263c9042c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -39,6 +39,6 @@ class DownloadHistoryOper(DbOper):
def truncate(self):
"""
清空转移记录
清空下载记录
"""
DownloadHistory.truncate(self._db)

View File

@ -46,6 +46,6 @@ class PluginDataOper(DbOper):
def truncate(self):
"""
清空转移记录
清空插件数据
"""
PluginData.truncate(self._db)

View File

@ -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