mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
It should be options.output in get_media
This commit is contained in:
parent
39ddc44aca
commit
5a6e69fffb
@ -915,7 +915,7 @@ def get_media(url, options):
|
||||
if match:
|
||||
if sys.version_info > (3, 0):
|
||||
title = re.sub('[^\w\s-]', '', match.group(1)).strip().lower()
|
||||
if output:
|
||||
if options.output:
|
||||
options.output = options.output + re.sub('[-\s]+', '-', title)
|
||||
else:
|
||||
options.output = re.sub('[-\s]+', '-', title)
|
||||
|
Loading…
Reference in New Issue
Block a user