pep8 prosopopee.py
This commit is contained in:
parent
fc82ddc1ab
commit
bec58371d6
@ -33,6 +33,7 @@ SETTINGS = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class Video(object):
|
class Video(object):
|
||||||
base_dir = ""
|
base_dir = ""
|
||||||
target_dir = ""
|
target_dir = ""
|
||||||
@ -41,7 +42,8 @@ class Video(object):
|
|||||||
# assuming string
|
# assuming string
|
||||||
if not isinstance(options, dict):
|
if not isinstance(options, dict):
|
||||||
options = {"video": options}
|
options = {"video": options}
|
||||||
self.options = SETTINGS["ffmpeg"].copy() # used for caching, if it's modified -> regenerate
|
# used for caching, if it's modified -> regenerate
|
||||||
|
self.options = SETTINGS["ffmpeg"].copy()
|
||||||
self.options.update(options)
|
self.options.update(options)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -113,7 +115,7 @@ class Image(object):
|
|||||||
gm_switches = {
|
gm_switches = {
|
||||||
"source": source,
|
"source": source,
|
||||||
"target": target,
|
"target": target,
|
||||||
"auto-orient" : "-auto-orient" if options["auto-orient"] else "",
|
"auto-orient": "-auto-orient" if options["auto-orient"] else "",
|
||||||
"strip": "-strip" if options["strip"] else "",
|
"strip": "-strip" if options["strip"] else "",
|
||||||
"quality": "-quality %s" % options["quality"] if "quality" in options else "-define jpeg:preserve-settings",
|
"quality": "-quality %s" % options["quality"] if "quality" in options else "-define jpeg:preserve-settings",
|
||||||
"resize": "-resize %s" % options["resize"] if options.get("resize", None) is not None else ""
|
"resize": "-resize %s" % options["resize"] if options.get("resize", None) is not None else ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user