fix 订阅总集数、开始集数问题

This commit is contained in:
jxxghp
2023-06-11 17:28:20 +08:00
parent b546bce8b8
commit 2d829208e4
6 changed files with 105 additions and 12 deletions

View File

@ -4,6 +4,7 @@ from unittest import TestCase
from app.chain.download import DownloadChain
from app.chain.identify import IdentifyChain
from app.core.metainfo import MetaInfo
class RecognizeTest(TestCase):
@ -16,5 +17,5 @@ class RecognizeTest(TestCase):
def test_recognize(self):
result = IdentifyChain().process(title="我和我的祖国 2019")
self.assertEqual(result.media_info.tmdb_id, 612845)
exists = DownloadChain().get_no_exists_info(result.media_info)
exists = DownloadChain().get_no_exists_info(MetaInfo("我和我的祖国 2019"), result.media_info)
self.assertTrue(exists[0])