mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 15:36:18 -05:00
Only generating video poster if no path or file exists.
This commit is contained in:
parent
95aaf46a63
commit
c2d25f7717
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ def convert_or_generate_poster(video: Video) -> Tuple[Optional[pathlib.Path], Op
|
|||
logger.error(f'Failed to convert invalid poster {old} to {new}', exc_info=e)
|
||||
return None, None
|
||||
|
||||
if not video.poster_path or not video.poster_file:
|
||||
if not video.poster_path and not video.poster_file:
|
||||
# Video poster was not discovered, or converted. Let's generate it.
|
||||
try:
|
||||
poster_path, duration = generate_video_poster(video_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue