mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-10 23:11:47 +08:00
Merge pull request #3268 from mackerel-12138/fix_scraper
This commit is contained in:
@@ -32,7 +32,7 @@ class TmdbScraper:
|
|||||||
else:
|
else:
|
||||||
if season is not None:
|
if season is not None:
|
||||||
# 查询季信息
|
# 查询季信息
|
||||||
seasoninfo = self.tmdb.get_tv_season_detail(mediainfo.tmdb_id, meta.begin_season)
|
seasoninfo = self.tmdb.get_tv_season_detail(mediainfo.tmdb_id, season)
|
||||||
if episode:
|
if episode:
|
||||||
# 集元数据文件
|
# 集元数据文件
|
||||||
episodeinfo = self.__get_episode_detail(seasoninfo, meta.begin_episode)
|
episodeinfo = self.__get_episode_detail(seasoninfo, meta.begin_episode)
|
||||||
@@ -233,7 +233,7 @@ class TmdbScraper:
|
|||||||
xoutline = DomUtils.add_node(doc, root, "outline")
|
xoutline = DomUtils.add_node(doc, root, "outline")
|
||||||
xoutline.appendChild(doc.createCDATASection(seasoninfo.get("overview") or ""))
|
xoutline.appendChild(doc.createCDATASection(seasoninfo.get("overview") or ""))
|
||||||
# 标题
|
# 标题
|
||||||
DomUtils.add_node(doc, root, "title", "季 %s" % season)
|
DomUtils.add_node(doc, root, "title", seasoninfo.get("name") or "季 %s" % season)
|
||||||
# 发行日期
|
# 发行日期
|
||||||
DomUtils.add_node(doc, root, "premiered", seasoninfo.get("air_date") or "")
|
DomUtils.add_node(doc, root, "premiered", seasoninfo.get("air_date") or "")
|
||||||
DomUtils.add_node(doc, root, "releasedate", seasoninfo.get("air_date") or "")
|
DomUtils.add_node(doc, root, "releasedate", seasoninfo.get("air_date") or "")
|
||||||
|
|||||||
Reference in New Issue
Block a user