1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

Fix automatic filename generation when output is a directory

This commit is contained in:
Anders Waldenborg 2014-02-18 18:59:18 +01:00
parent ee1ba8b16e
commit 5fe5eb40f2

View File

@ -72,7 +72,7 @@ def get_media(url, options):
options.output = filenamify(title_tag)
else:
# output is a directory
os.path.join(options.output, filenamify(title_tag))
options.output = os.path.join(options.output, filenamify(title_tag))
try:
stream.get(options)