diff --git a/alembic/versions/52ab4930be04_1_0_3.py b/alembic/versions/52ab4930be04_1_0_3.py index 76ec5430..956b0079 100644 --- a/alembic/versions/52ab4930be04_1_0_3.py +++ b/alembic/versions/52ab4930be04_1_0_3.py @@ -20,6 +20,7 @@ def upgrade() -> None: # ### commands auto generated by Alembic - please adjust! ### op.execute("delete from systemconfig where key = 'RssSites';") op.execute("insert into systemconfig(key, value) VALUES('RssSites', (select value from systemconfig where key= 'IndexerSites'));") + op.execute("delete from systemconfig where key = 'SearchResults';") # ### end Alembic commands ### diff --git a/app/chain/transfer.py b/app/chain/transfer.py index 96b4dfa1..6a02aa4d 100644 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -344,7 +344,7 @@ class TransferChain(ChainBase): # 整合数据 if mtype: meta.type = mtype - if season: + if season is not None: meta.begin_season = season # 识别媒体信息 mediainfo: MediaInfo = self.mediachain.recognize_media(tmdbid=tmdbid, mtype=mtype)