Code cleanup

This commit is contained in:
simon987
2018-04-21 13:27:13 -04:00
parent 4eb9cf6b63
commit 87f35571fa
20 changed files with 811 additions and 856 deletions

View File

@@ -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):