fix cache with video

This commit is contained in:
Adrien Beudin 2017-05-23 10:53:30 +02:00
parent 124f4ae315
commit 6e29dd3c40

View File

@ -118,7 +118,6 @@ class Video(object):
command = "{binary} {loglevel} -i {source} {video} {vbitrate} {other} {audio} {abitrate} {resolution} {format} -y {target}".format(**ffmpeg_switches) command = "{binary} {loglevel} -i {source} {video} {vbitrate} {other} {audio} {abitrate} {resolution} {format} -y {target}".format(**ffmpeg_switches)
print(command) print(command)
error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"]) error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"])
target = target + "." + options["extension"]
print target print target
CACHE.cache_picture(source, target, options) CACHE.cache_picture(source, target, options)