mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
tv4play: dont use directory twice in output filename
it happens when the output is an directory
This commit is contained in:
parent
e6baf3e4da
commit
d4afbd778b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user