mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
dr: dont crash on files without subs
This commit is contained in:
parent
1cf16a91a4
commit
d8f5e5157b
@ -59,6 +59,7 @@ class Dr(Service, OpenGraphThumbMixin):
|
|||||||
yield ServiceError("Can't play this because the video is geoblocked or not available.")
|
yield ServiceError("Can't play this because the video is geoblocked or not available.")
|
||||||
else:
|
else:
|
||||||
yield from hlsparse(self.config, res, video["url"], output=self.output)
|
yield from hlsparse(self.config, res, video["url"], output=self.output)
|
||||||
|
if len(video["subtitles"]) > 0:
|
||||||
yield subtitle(copy.copy(self.config), "wrst", video["subtitles"][0]["link"], output=self.output)
|
yield subtitle(copy.copy(self.config), "wrst", video["subtitles"][0]["link"], output=self.output)
|
||||||
|
|
||||||
def find_all_episodes(self, config):
|
def find_all_episodes(self, config):
|
||||||
|
Loading…
Reference in New Issue
Block a user