fix
This commit is contained in:
parent
b94f201667
commit
8bd4c21511
@ -81,7 +81,7 @@ class DownloadChain(ChainBase):
|
|||||||
mtype=NotificationType.Download,
|
mtype=NotificationType.Download,
|
||||||
userid=userid,
|
userid=userid,
|
||||||
title=f"{mediainfo.title_year} "
|
title=f"{mediainfo.title_year} "
|
||||||
f"{download_episodes or meta.season_episode} 开始下载",
|
f"{'%s %s' % (meta.season, download_episodes) or meta.season_episode} 开始下载",
|
||||||
text=msg_text,
|
text=msg_text,
|
||||||
image=mediainfo.get_message_image()))
|
image=mediainfo.get_message_image()))
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ class DownloadChain(ChainBase):
|
|||||||
_meta = context.meta_info
|
_meta = context.meta_info
|
||||||
|
|
||||||
# 实际下载的集数
|
# 实际下载的集数
|
||||||
download_episodes = StringUtils.format_ep(list(episodes)) if episodes else _meta.episode
|
download_episodes = StringUtils.format_ep(list(episodes)) if episodes else None
|
||||||
_folder_name = ""
|
_folder_name = ""
|
||||||
if not torrent_file:
|
if not torrent_file:
|
||||||
# 下载种子文件,得到的可能是文件也可能是磁力链
|
# 下载种子文件,得到的可能是文件也可能是磁力链
|
||||||
@ -288,7 +288,7 @@ class DownloadChain(ChainBase):
|
|||||||
tvdbid=_media.tvdb_id,
|
tvdbid=_media.tvdb_id,
|
||||||
doubanid=_media.douban_id,
|
doubanid=_media.douban_id,
|
||||||
seasons=_meta.season,
|
seasons=_meta.season,
|
||||||
episodes=download_episodes,
|
episodes=download_episodes or _meta.episode,
|
||||||
image=_media.get_backdrop_image(),
|
image=_media.get_backdrop_image(),
|
||||||
download_hash=_hash,
|
download_hash=_hash,
|
||||||
torrent_name=_torrent.title,
|
torrent_name=_torrent.title,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user