From d4afbd778bd237bfb3a1666ae05b8242b5837a5e Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 5 Oct 2015 20:27:45 +0200 Subject: [PATCH] tv4play: dont use directory twice in output filename it happens when the output is an directory --- lib/svtplay_dl/service/tv4play.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py index 2ec51fd..63a1ab8 100644 --- a/lib/svtplay_dl/service/tv4play.py +++ b/lib/svtplay_dl/service/tv4play.py @@ -71,8 +71,9 @@ class Tv4play(Service, OpenGraphThumbMixin): if options.output_auto: directory = os.path.dirname(options.output) + basename = os.path.basename(options.output) options.service = "tv4play" - title = "%s-%s-%s" % (options.output, vid, options.service) + title = "%s-%s-%s" % (basename, vid, options.service) title = filenamify(title) if len(directory): options.output = os.path.join(directory, title)