This commit is contained in:
jxxghp 2023-06-09 22:04:54 +08:00
parent 64713f45f1
commit 60ce3bb868
2 changed files with 2 additions and 6 deletions

View File

@ -23,12 +23,8 @@ class Subscribes:
"""
# 总集数
if mediainfo.type == MediaType.TV:
if not kwargs.get('season'):
kwargs.update({
'season': 1
})
if not kwargs.get('total_episode'):
total_episode = len(mediainfo.seasons.get(kwargs.get('season')) or [])
total_episode = len(mediainfo.seasons.get(kwargs.get('season') or 1) or [])
if not total_episode:
return False, "未识别到总集数"
kwargs.update({

View File

@ -186,6 +186,6 @@ class Telegram(metaclass=Singleton):
"""
停止Telegram消息接收服务
"""
if not self._bot:
if self._bot:
self._bot.stop_polling()
self._polling_thread.join()