mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-02 02:01:05 +08:00
Merge remote-tracking branch 'origin/3.1-dev' into 3.1-dev
This commit is contained in:
@@ -42,7 +42,8 @@ def is_animation(tv_id, language) -> bool:
|
||||
|
||||
|
||||
def get_season(seasons: list) -> tuple[int, str]:
|
||||
ss = sorted(seasons, key=lambda e: e.get("air_date"), reverse=True)
|
||||
ss = [s for s in seasons if s["air_date"] is not None]
|
||||
ss = sorted(ss, key=lambda e: e.get("air_date"), reverse=True)
|
||||
for season in ss:
|
||||
if re.search(r"第 \d 季", season.get("season")) is not None:
|
||||
date = season.get("air_date").split("-")
|
||||
|
||||
Reference in New Issue
Block a user