list(map
This commit is contained in:
parent
d35b9d2ac9
commit
db05557ae7
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ import ox
|
||||||
class AspectRatio(fractions.Fraction):
|
class AspectRatio(fractions.Fraction):
|
||||||
def __new__(cls, numerator, denominator=None):
|
def __new__(cls, numerator, denominator=None):
|
||||||
if not denominator:
|
if not denominator:
|
||||||
ratio = map(int, numerator.split(':'))
|
ratio = list(map(int, numerator.split(':')))
|
||||||
if len(ratio) == 1:
|
if len(ratio) == 1:
|
||||||
ratio.append(1)
|
ratio.append(1)
|
||||||
numerator = ratio[0]
|
numerator = ratio[0]
|
||||||
|
@ -68,7 +68,7 @@ def run_command(cmd, timeout=25):
|
||||||
def video_frame_positions(duration):
|
def video_frame_positions(duration):
|
||||||
pos = duration / 2
|
pos = duration / 2
|
||||||
# return [pos/4, pos/2, pos/2+pos/4, pos, pos+pos/2, pos+pos/2+pos/4]
|
# return [pos/4, pos/2, pos/2+pos/4, pos, pos+pos/2, pos+pos/2+pos/4]
|
||||||
return map(int, [pos/2, pos, pos+pos/2])
|
return list(map(int, [pos/2, pos, pos+pos/2]))
|
||||||
|
|
||||||
def cleanup_tree(root):
|
def cleanup_tree(root):
|
||||||
again = False
|
again = False
|
||||||
|
|
Loading…
Reference in a new issue