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

svtplay: fix Subtitle not found

fixes: #1206
This commit is contained in:
Johan Andersson 2020-01-29 20:44:32 +01:00
parent c59a305336
commit 9867f07546

View File

@ -89,7 +89,7 @@ class Svtplay(Service, MetadataThumbMixin):
def _get_video(self, janson):
if "subtitleReferences" in janson:
for i in janson["subtitleReferences"]:
if i["format"] == "websrt" and "url" in i:
if i["format"] == "webvtt" and "url" in i:
yield subtitle(copy.copy(self.config), "wrst", i["url"], output=self.output)
if "videoReferences" in janson: