mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
parent
0bcf162083
commit
29744a58af
@ -46,13 +46,13 @@ class Urplay(Service, OpenGraphThumbMixin):
|
|||||||
for n in list(streams.keys()):
|
for n in list(streams.keys()):
|
||||||
yield streams[n]
|
yield streams[n]
|
||||||
if not (self.config.get("get_all_subtitles")) and (stream["default"]):
|
if not (self.config.get("get_all_subtitles")) and (stream["default"]):
|
||||||
yield subtitle(copy.copy(self.config), "tt", stream["tt"]["location"], output=self.output)
|
yield subtitle(copy.copy(self.config), "wrst", stream["tt"]["location"].replace(".tt", ".vtt"), output=self.output)
|
||||||
|
|
||||||
if self.config.get("get_all_subtitles") and "tt" in stream:
|
if self.config.get("get_all_subtitles") and "tt" in stream:
|
||||||
label = stream["tt"]["language"]
|
label = stream["tt"]["language"]
|
||||||
if stream["tt"]["scope"] != "complete":
|
if stream["tt"]["scope"] != "complete":
|
||||||
label = "{}-{}".format(label, stream["tt"]["scope"])
|
label = "{}-{}".format(label, stream["tt"]["scope"])
|
||||||
yield subtitle(copy.copy(self.config), "tt", stream["tt"]["location"], label, output=copy.copy(self.output))
|
yield subtitle(copy.copy(self.config), "wrst", stream["tt"]["location"].replace(".tt", ".vtt"), label, output=copy.copy(self.output))
|
||||||
|
|
||||||
def find_all_episodes(self, config):
|
def find_all_episodes(self, config):
|
||||||
episodes = []
|
episodes = []
|
||||||
|
Loading…
Reference in New Issue
Block a user