diff --git a/app/chain/transfer.py b/app/chain/transfer.py index 8e08f285..93bfb2bd 100644 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -67,7 +67,10 @@ class TransferChain(ChainBase): downloadhis: DownloadHistory = self.downloadhis.get_by_hash(torrent.hash) if downloadhis: # 类型 - mtype = MediaType(downloadhis.type) + try: + mtype = MediaType(downloadhis.type) + except ValueError: + mtype = MediaType.TV # 按TMDBID识别 mediainfo = self.recognize_media(mtype=mtype, tmdbid=downloadhis.tmdbid,