1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 15:14:14 +01:00

svtplay: support for old subtitles

they seems to switch from new to the old one now
This commit is contained in:
Johan Andersson 2022-12-01 01:12:29 +01:00
parent d1a6d7e470
commit 757c571a48

View File

@ -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"] == "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)
if "videoReferences" in janson: