1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

svtplay: add the language to the subtitle.

This commit is contained in:
Johan Andersson 2021-05-20 14:33:48 +02:00
parent 197985b540
commit 3d46e85dfc

View File

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