fix bug
This commit is contained in:
parent
64713f45f1
commit
60ce3bb868
@ -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({
|
||||
|
@ -186,6 +186,6 @@ class Telegram(metaclass=Singleton):
|
||||
"""
|
||||
停止Telegram消息接收服务
|
||||
"""
|
||||
if not self._bot:
|
||||
if self._bot:
|
||||
self._bot.stop_polling()
|
||||
self._polling_thread.join()
|
||||
|
Loading…
x
Reference in New Issue
Block a user