mirror of
https://github.com/c0decracker/video-splitter.git
synced 2026-01-23 02:24:16 +00:00
Fix type error problem
Traceback (most recent call last):
File "/home/shahin/bin/ffmpeg-split.py", line 178, in <module>
main()
File "/home/shahin/bin/ffmpeg-split.py", line 172, in main
split_by_seconds(**(options.__dict__))
TypeError: split_by_seconds() takes at least 2 arguments (3 given)
This commit is contained in:
parent
5ec300a2f8
commit
6bf7199bd9
1 changed files with 2 additions and 2 deletions
|
|
@ -139,7 +139,7 @@ def main():
|
|||
action = "store"
|
||||
)
|
||||
parser.add_option("-s", "--split-size",
|
||||
dest = "split_size",
|
||||
dest = "split_length",
|
||||
help = "Split or chunk size in seconds, for example 10",
|
||||
type = "int",
|
||||
action = "store"
|
||||
|
|
@ -168,7 +168,7 @@ def main():
|
|||
|
||||
if options.filename and options.manifest:
|
||||
split_by_manifest(**(options.__dict__))
|
||||
elif options.filename and options.split_size:
|
||||
elif options.filename and options.split_length:
|
||||
split_by_seconds(**(options.__dict__))
|
||||
else:
|
||||
parser.print_help()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue