Skip to content

Commit 5debfca

Browse files
committed
fix #361
fix #357
1 parent 3eeb9e2 commit 5debfca

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

app/chain/transfer.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,28 +59,17 @@ def process(self) -> bool:
5959
# 查询下载记录识别情况
6060
downloadhis: DownloadHistory = self.downloadhis.get_by_hash(torrent.hash)
6161
if downloadhis:
62-
# MoviePilot下载的任务,识别元数据
63-
meta: MetaBase = MetaInfo(title=torrent.title)
64-
if not meta.name:
65-
logger.error(f'未识别到元数据,标题:{torrent.title}')
66-
continue
6762
# 类型
6863
mtype = MediaType(downloadhis.type)
69-
# 补充剧集信息
70-
if mtype == MediaType.TV \
71-
and ((not meta.season_list and downloadhis.seasons)
72-
or (not meta.episode_list and downloadhis.episodes)):
73-
meta = MetaInfo(f"{torrent.title} {downloadhis.seasons} {downloadhis.episodes}")
7464
# 按TMDBID识别
7565
mediainfo = self.recognize_media(mtype=mtype,
7666
tmdbid=downloadhis.tmdbid)
7767
else:
7868
# 非MoviePilot下载的任务,按文件识别
79-
meta = None
8069
mediainfo = None
8170

8271
# 执行转移
83-
self.do_transfer(path=torrent.path, meta=meta, mediainfo=mediainfo,
72+
self.do_transfer(path=torrent.path, mediainfo=mediainfo,
8473
download_hash=torrent.hash)
8574

8675
# 设置下载任务状态

0 commit comments

Comments
 (0)