From db344d5bdf831bf49bab09f3d5097f93c1b4134a Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 30 Jul 2023 17:41:41 +0800 Subject: [PATCH] fix bug --- app/core/context.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/core/context.py b/app/core/context.py index 54d165f4..bc20372d 100644 --- a/app/core/context.py +++ b/app/core/context.py @@ -278,8 +278,10 @@ class MediaInfo: # 类型 if isinstance(info.get('media_type'), MediaType): self.type = info.get('media_type') - else: + elif info.get('media_type'): self.type = MediaType.MOVIE if info.get("media_type") == "movie" else MediaType.TV + else: + self.type = MediaType.MOVIE if info.get("title") else MediaType.TV # TMDBID self.tmdb_id = info.get('id') if not self.tmdb_id: