ruff: enable A lint

This commit is contained in:
Marcel Hellwig
2026-01-04 15:01:24 +01:00
parent 7824828bea
commit 6e46b482cb
11 changed files with 77 additions and 84 deletions

View File

@@ -12,11 +12,11 @@ def get_year_from_date(first_air_date: str | None) -> int | None:
return None
def download_poster_image(storage_path: Path, poster_url: str, id: UUID) -> bool:
def download_poster_image(storage_path: Path, poster_url: str, uuid: UUID) -> bool:
res = requests.get(poster_url, stream=True, timeout=60)
if res.status_code == 200:
image_file_path = storage_path.joinpath(str(id)).with_suffix("jpg")
image_file_path = storage_path.joinpath(str(uuid)).with_suffix("jpg")
image_file_path.write_bytes(res.content)
original_image = Image.open(image_file_path)