mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
subtitle: Add subfix after episodename if we want to download all subtitles.
This commit is contained in:
parent
0f0e9fc459
commit
bfe7089c58
@ -56,7 +56,11 @@ class subtitle(object):
|
||||
data = self.raw(subdata)
|
||||
|
||||
if self.subfix:
|
||||
self.output = self.options.output + self.subfix
|
||||
if self.config.get("get_all_subtitles"):
|
||||
if self.output["episodename"]:
|
||||
self.output["episodename"] = "{}-{}".format(self.output["episodename"], self.subfix)
|
||||
else:
|
||||
self.output["episodename"] = self.subfix
|
||||
|
||||
if self.config.get("get_raw_subtitles"):
|
||||
subdata = self.raw(subdata)
|
||||
|
Loading…
Reference in New Issue
Block a user