🐛 autopyvideothumbnailer: thumbnail may also be a symlink

This commit is contained in:
neingeist 2024-02-06 22:40:19 +01:00
parent 7334d6c99e
commit c53e894b5a

View file

@ -73,7 +73,7 @@ def process(searchdir):
for video_file in video_files:
# Skip if .jpg file already exists
thumbnails_file = video_file + ".jpg"
if os.path.exists(thumbnails_file):
if os.path.lexists(thumbnails_file):
if config.verbose:
print(f"Skipping: {video_file} (thumbnails already exist)")
continue