1
0
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:
Johan Andersson 2018-05-27 15:55:25 +02:00
parent 0f0e9fc459
commit bfe7089c58

View File

@ -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)