更新 tmdb_cache.py

This commit is contained in:
jxxghp 2023-06-09 22:43:17 +08:00 committed by GitHub
parent b928633239
commit b9012c5666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ class TmdbCache(metaclass=Singleton):
"""
获取缓存KEY
"""
return f"[{meta.type.value}]{meta.get_name()}-{meta.year}-{meta.begin_season}"
return f"[{meta.type.value if meta.type else '未知'}]{meta.get_name()}-{meta.year}-{meta.begin_season}"
def get(self, meta: MetaBase):
"""