More thumbnail fixes

This commit is contained in:
Brett Williams
2023-05-30 21:05:59 -05:00
parent 769611ba26
commit 22cfe9c24e
3 changed files with 13 additions and 6 deletions

View File

@@ -38,8 +38,6 @@ def generate_thumbnail_for_job(job, thumb_video_path, thumb_image_path, max_widt
# Determine best source file to use for thumbs
if job.render_status() == RenderStatus.COMPLETED: # use finished file for thumb
source_path = job.file_list()
elif len(job.file_list()) > 1: # if image sequence, use second to last file (last may be in use)
source_path = [job.file_list()[-2]]
else:
source_path = [job.input_path] # use source if nothing else