mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-19 02:32:34 -08:00
feat: fallback to cover image if episode thumbnail not available
This commit is contained in:
@@ -229,6 +229,10 @@ def _episode_cache_worker(
|
|||||||
if not title:
|
if not title:
|
||||||
title = f"Episode {episode_str}"
|
title = f"Episode {episode_str}"
|
||||||
|
|
||||||
|
# fallback
|
||||||
|
if not thumbnail and media_item.cover_image:
|
||||||
|
thumbnail = media_item.cover_image.large
|
||||||
|
|
||||||
# Download thumbnail if available
|
# Download thumbnail if available
|
||||||
if thumbnail:
|
if thumbnail:
|
||||||
executor.submit(_save_image_from_url, thumbnail, hash_id)
|
executor.submit(_save_image_from_url, thumbnail, hash_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user