add still_url to Episode

This commit is contained in:
2025-07-21 04:43:24 +03:00
parent 5318cc4680
commit 0d421c5448
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -42,6 +42,7 @@ class Episode:
title: str = None
file_url: str = None
still_url: str = None
episode_type: str = None
release_date: str = None
+2
View File
@@ -128,6 +128,8 @@ async def _fetch_tv_show(tv_show: TVShow) -> TVShow:
vote_average=episode_response_json.get("vote_average"),
title=episode_response_json.get("name", str(episode_number)),
file_url=raw_episode.file_url,
still_url=f"{_BASE_IMAGE_URL}original{episode_response_json['still_path']}" if tv_response_json.get(
"poster_path") else None,
episode_type=episode_response_json.get("episode_type"),
release_date=episode_response_json.get("air_date"),
))