aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortassaron2017-05-21 20:07:07 -0400
committertassaron2017-05-21 20:07:07 -0400
commitfb5115f0b205adbcd8f5a2d4d29a98fbc79cec60 (patch)
tree1af1a28a2375839b62d50848b790ca03181fe92f
parentcb04c950d48ac7c7fa9b95b3c39d9a8fb6c5bae0 (diff)
fixed preview not updating when changing between two videos
making the filename of preview.jpg different each time seems to work
-rw-r--r--core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core.py b/core.py
index 8fd95f9..92b0d0e 100644
--- a/core.py
+++ b/core.py
@@ -176,7 +176,7 @@ class Core():
self.deleteTempDir()
os.mkdir(self.tempDir)
if firstOnly:
- filename = 'preview.jpg'
+ filename = 'preview%s.jpg' % os.path.basename(videoPath).split('.', 1)[0]
options = '-ss 10 -vframes 1'
else:
filename = '$frame%05d.jpg'