1
0
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:
Johan Andersson 2013-01-12 15:50:00 +01:00
parent 39ddc44aca
commit 5a6e69fffb

View File

@ -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)