mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-08 22:15:04 +08:00
feat: optimize scraping for multi-server compatibility
- Add studio, country, runtime tags to NFO generation - Fix Fanart naming: showbackground→fanart (recognized by Jellyfin/Emby) - Add image alias system: backdrop↔fanart, thumb↔landscape - Merge image sources from all modules instead of first-wins - Add CLEARART and LANDSCAPE scraping metadata types - Extend season scraping with backdrop and landscape support Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -301,6 +301,17 @@ class TmdbScraper:
|
||||
# 内容分级
|
||||
if content_rating := mediainfo.content_rating:
|
||||
DomUtils.add_node(doc, root, "mpaa", content_rating)
|
||||
# 制作公司
|
||||
for company in mediainfo.production_companies or []:
|
||||
if company.get("name"):
|
||||
DomUtils.add_node(doc, root, "studio", company.get("name"))
|
||||
# 制作国家
|
||||
for country in mediainfo.production_countries or []:
|
||||
if country.get("name"):
|
||||
DomUtils.add_node(doc, root, "country", country.get("name"))
|
||||
# 时长
|
||||
if mediainfo.runtime:
|
||||
DomUtils.add_node(doc, root, "runtime", str(mediainfo.runtime))
|
||||
|
||||
return doc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user