From 0c6684a572d3c3f5321c97fd09d40e0b630fee02 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 28 May 2024 12:25:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#2208=20=E4=B8=8B=E8=BD=BD=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E9=94=99=E8=AF=AF=E6=95=B0=E6=8D=AE=E5=85=BC=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/transfer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,