File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff 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 # 设置下载任务状态
You can’t perform that action at this time.
0 commit comments