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:
jxxghp
2026-05-19 12:36:47 +08:00
parent 195e34563d
commit 34ff80e26c
5 changed files with 185 additions and 21 deletions

View File

@@ -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