pass output filename
This commit is contained in:
parent
09e1f2833c
commit
60786749ec
1 changed files with 9 additions and 3 deletions
6
edit.py
6
edit.py
|
@ -146,6 +146,9 @@ if __name__ == '__main__':
|
|||
parser.add_argument('-c', '--config', dest='config',
|
||||
help='config.json containing config',
|
||||
default='~/.ox/client.json')
|
||||
parser.add_argument('-o', '--output', dest='output',
|
||||
help='json output',
|
||||
default='')
|
||||
parser.add_argument('url', metavar='url', type=str,
|
||||
help='edit url')
|
||||
opts = parser.parse_args()
|
||||
|
@ -255,6 +258,9 @@ if __name__ == '__main__':
|
|||
if not use_local:
|
||||
cache_clips(api, videos, use_source, use_pandora)
|
||||
|
||||
if opts.output:
|
||||
name = opts.output.replace('.json', '')
|
||||
else:
|
||||
name = normalize(edit_id)
|
||||
if sort_by != 'year':
|
||||
name += '_' + sort_by
|
||||
|
|
Loading…
Reference in a new issue