dev: bump to 0.1.71-dev – Episodentitel und TMDB API-Key-Fix
This commit is contained in:
@@ -454,6 +454,7 @@ def lookup_movie(
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class TmdbEpisodeMeta:
|
||||
title: str
|
||||
plot: str
|
||||
thumb: str
|
||||
runtime_minutes: int
|
||||
@@ -545,6 +546,7 @@ def lookup_tv_season(
|
||||
continue
|
||||
if not ep_number:
|
||||
continue
|
||||
title = (entry.get("name") or "").strip()
|
||||
plot = (entry.get("overview") or "").strip()
|
||||
runtime_minutes = 0
|
||||
try:
|
||||
@@ -553,9 +555,9 @@ def lookup_tv_season(
|
||||
runtime_minutes = 0
|
||||
still_path = (entry.get("still_path") or "").strip()
|
||||
thumb = f"{TMDB_IMAGE_BASE}/w300{still_path}" if still_path else ""
|
||||
if not plot and not thumb and not runtime_minutes:
|
||||
if not title and not plot and not thumb and not runtime_minutes:
|
||||
continue
|
||||
result[ep_number] = TmdbEpisodeMeta(plot=plot, thumb=thumb, runtime_minutes=runtime_minutes)
|
||||
result[ep_number] = TmdbEpisodeMeta(title=title, plot=plot, thumb=thumb, runtime_minutes=runtime_minutes)
|
||||
return result or None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user