From 29744a58af77677a024cfb9c2539e91cc85b481b Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 16 Feb 2021 23:57:16 +0100 Subject: [PATCH] urplay: use wsrt subtitles instead of tt fixes: #1324 --- lib/svtplay_dl/service/urplay.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/urplay.py b/lib/svtplay_dl/service/urplay.py index c875255..4c7421d 100644 --- a/lib/svtplay_dl/service/urplay.py +++ b/lib/svtplay_dl/service/urplay.py @@ -46,13 +46,13 @@ class Urplay(Service, OpenGraphThumbMixin): for n in list(streams.keys()): yield streams[n] if not (self.config.get("get_all_subtitles")) and (stream["default"]): - yield subtitle(copy.copy(self.config), "tt", stream["tt"]["location"], output=self.output) + yield subtitle(copy.copy(self.config), "wrst", stream["tt"]["location"].replace(".tt", ".vtt"), output=self.output) if self.config.get("get_all_subtitles") and "tt" in stream: label = stream["tt"]["language"] if stream["tt"]["scope"] != "complete": label = "{}-{}".format(label, stream["tt"]["scope"]) - yield subtitle(copy.copy(self.config), "tt", stream["tt"]["location"], label, output=copy.copy(self.output)) + yield subtitle(copy.copy(self.config), "wrst", stream["tt"]["location"].replace(".tt", ".vtt"), label, output=copy.copy(self.output)) def find_all_episodes(self, config): episodes = []