mirror of
https://github.com/simon987/Simple-Incremental-Search-Tool.git
synced 2025-12-14 07:39:05 +00:00
Code cleanup
This commit is contained in:
@@ -37,12 +37,13 @@ class ThumbnailGenerator:
|
||||
try:
|
||||
(ffmpeg.
|
||||
input(path)
|
||||
.overwrite_output("tmp", vframes=1, f="image2", loglevel="error")
|
||||
.output("tmp", vframes=1, f="image2", loglevel="error")
|
||||
.run()
|
||||
)
|
||||
self.generate_image("tmp", dest_path)
|
||||
os.remove("tmp")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print("Couldn't make thumbnail for " + path)
|
||||
|
||||
def generate_all(self, docs, dest_path, counter: Value=None):
|
||||
|
||||
Reference in New Issue
Block a user