mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: add the language to the subtitle.
This commit is contained in:
parent
197985b540
commit
3d46e85dfc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user