From f38e8403a2bbc877e9ac4e021a4338d1bf57d07a Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 22 Jan 2017 10:49:43 +0100 Subject: [PATCH] mutliargs: using -A creates bad output names. using -A creates an directory with the first files name for the second argument which is wrong. fixes #525 --- lib/svtplay_dl/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py index 464334a..abedde7 100644 --- a/lib/svtplay_dl/__init__.py +++ b/lib/svtplay_dl/__init__.py @@ -164,7 +164,7 @@ def get_multiple_media(urls, options): return for url in urls: - get_media(url, options) + get_media(url, copy.copy(options)) def get_media(url, options): if "http" not in url[:4]: @@ -187,9 +187,9 @@ def get_media(url, options): url = ensure_unicode(url) if options.all_episodes: - get_all_episodes(stream, options, url) + get_all_episodes(stream, copy.copy(options), url) else: - get_one_media(stream, options) + get_one_media(stream, copy.copy(options)) def get_all_episodes(stream, options, url):