mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-12-03 16:44:17 +01:00
svtplay: fix subtitles
This commit is contained in:
parent
76cfef3246
commit
73d2bb7831
@ -101,7 +101,7 @@ class Svtplay(Service, MetadataThumbMixin):
|
||||
def _get_video(self, janson):
|
||||
if "subtitleReferences" in janson:
|
||||
for i in janson["subtitleReferences"]:
|
||||
if i["format"] == "webvtt" and "url" in i:
|
||||
if i["format"] == "VTT" and "url" in i:
|
||||
yield subtitle(copy.copy(self.config), "wrst", i["url"], "sv", output=self.output)
|
||||
|
||||
if "videoReferences" in janson:
|
||||
@ -113,7 +113,7 @@ class Svtplay(Service, MetadataThumbMixin):
|
||||
if i["format"] == "hls-cmaf-full":
|
||||
continue
|
||||
if i["url"].find(".m3u8") > 0:
|
||||
yield from hlsparse(self.config, self.http.request("get", i["url"]), i["url"], self.output)
|
||||
yield from hlsparse(self.config, self.http.request("get", i["url"]), i["url"], output=self.output)
|
||||
elif i["url"].find(".mpd") > 0:
|
||||
yield from dashparse(self.config, self.http.request("get", i["url"]), i["url"], output=self.output)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user