From 0bd37da8c72c4fefa3a20d7a57e92ce243e53613 Mon Sep 17 00:00:00 2001 From: monster-fire <35680496+monster-fire@users.noreply.github.com> Date: Mon, 28 Apr 2025 18:46:48 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=5F=5Finit=5F=5F.py=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=A9=BA=E5=80=BC=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/themoviedb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/themoviedb/__init__.py b/app/modules/themoviedb/__init__.py index b65b65a6..e9fb64e1 100644 --- a/app/modules/themoviedb/__init__.py +++ b/app/modules/themoviedb/__init__.py @@ -268,7 +268,7 @@ class TheMovieDbModule(_ModuleBase): # 当前季第一季时间 first_date = episodes[0].get("air_date") # 判断是不是日期格式 - if re.match(r"^\d{4}-\d{2}-\d{2}$", first_date): + if first_date and re.match(r"^\d{4}-\d{2}-\d{2}$", first_date): season_years[season] = str(first_date).split("-")[0] if season_years: mediainfo.season_years = season_years