mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
svtplay: support for old subtitles
they seems to switch from new to the old one now
This commit is contained in:
parent
d1a6d7e470
commit
757c571a48
@ -101,7 +101,7 @@ class Svtplay(Service, MetadataThumbMixin):
|
|||||||
def _get_video(self, janson):
|
def _get_video(self, janson):
|
||||||
if "subtitleReferences" in janson:
|
if "subtitleReferences" in janson:
|
||||||
for i in janson["subtitleReferences"]:
|
for i in janson["subtitleReferences"]:
|
||||||
if i["format"] == "VTT" and "url" in i:
|
if (i["format"] == "VTT" or i["format"] == "webvtt") and "url" in i:
|
||||||
yield subtitle(copy.copy(self.config), "wrst", i["url"], "sv", output=self.output)
|
yield subtitle(copy.copy(self.config), "wrst", i["url"], "sv", output=self.output)
|
||||||
|
|
||||||
if "videoReferences" in janson:
|
if "videoReferences" in janson:
|
||||||
|
Loading…
Reference in New Issue
Block a user