This commit is contained in:
jxxghp
2023-07-22 12:53:12 +08:00
parent 042d091598
commit b789bfc979
2 changed files with 10 additions and 1 deletions

View File

@ -399,6 +399,11 @@ class MediaInfo:
# 简介
if not self.overview:
self.overview = info.get("intro") or info.get("card_subtitle") or ""
# 从简介中提取年份
if self.overview and not self.year:
match = re.search(r'\d{4}', self.overview)
if match:
self.year = match.group()
# 导演和演员
if not self.directors:
self.directors = info.get("directors") or []