feat: fallback to cover image if episode thumbnail not available

This commit is contained in:
Benexl
2025-07-24 14:29:25 +03:00
parent 48f46cdf3d
commit 19c6656cdf

View File

@@ -229,6 +229,10 @@ def _episode_cache_worker(
if not title:
title = f"Episode {episode_str}"
# fallback
if not thumbnail and media_item.cover_image:
thumbnail = media_item.cover_image.large
# Download thumbnail if available
if thumbnail:
executor.submit(_save_image_from_url, thumbnail, hash_id)