fixed preview not updating when changing between two videos

making the filename of preview.jpg different each time seems to work
This commit is contained in:
tassaron 2017-05-21 20:07:07 -04:00
parent cb04c950d4
commit fb5115f0b2
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ class Core():
self.deleteTempDir() self.deleteTempDir()
os.mkdir(self.tempDir) os.mkdir(self.tempDir)
if firstOnly: if firstOnly:
filename = 'preview.jpg' filename = 'preview%s.jpg' % os.path.basename(videoPath).split('.', 1)[0]
options = '-ss 10 -vframes 1' options = '-ss 10 -vframes 1'
else: else:
filename = '$frame%05d.jpg' filename = '$frame%05d.jpg'