fix bugs
This commit is contained in:
parent
0d0b078a31
commit
56eba6b6c4
@ -216,7 +216,7 @@ class CommonChain(ChainBase):
|
|||||||
torrent_episodes = self.torrent.get_torrent_episodes(torrent_files)
|
torrent_episodes = self.torrent.get_torrent_episodes(torrent_files)
|
||||||
if not torrent_episodes \
|
if not torrent_episodes \
|
||||||
or len(torrent_episodes) >= __get_season_episodes(need_tmdbid, item_season[0]):
|
or len(torrent_episodes) >= __get_season_episodes(need_tmdbid, item_season[0]):
|
||||||
_, download_id = __download(_context=context, _torrent_file=torrent_path)
|
download_id = __download(_context=context, _torrent_file=torrent_path)
|
||||||
else:
|
else:
|
||||||
logger.info(
|
logger.info(
|
||||||
f"【Downloader】种子 {meta.org_string} 未含集数信息,解析文件数为 {len(torrent_episodes)}")
|
f"【Downloader】种子 {meta.org_string} 未含集数信息,解析文件数为 {len(torrent_episodes)}")
|
||||||
|
@ -167,6 +167,8 @@ class Telegram(metaclass=Singleton):
|
|||||||
|
|
||||||
# 发送图文消息
|
# 发送图文消息
|
||||||
if image:
|
if image:
|
||||||
|
# 转换TMDB图片质量
|
||||||
|
image = image.replace("original", "w500")
|
||||||
res = request.get_res("https://api.telegram.org/bot%s/sendPhoto?" % self._telegram_token + urlencode(
|
res = request.get_res("https://api.telegram.org/bot%s/sendPhoto?" % self._telegram_token + urlencode(
|
||||||
{"chat_id": chat_id, "photo": image, "caption": caption, "parse_mode": "Markdown"}))
|
{"chat_id": chat_id, "photo": image, "caption": caption, "parse_mode": "Markdown"}))
|
||||||
if __res_parse(res):
|
if __res_parse(res):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user