1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-26 21:25:39 +01:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Johan Andersson
2383b26e1b Revert "pre-commit: update"
This reverts commit 7e10813ae3.
2024-11-08 18:23:26 +01:00
Johan Andersson
1f55f8cb3f pre-commit: rollback black to earlier version 2024-11-08 18:20:31 +01:00
Johan Andersson
7e10813ae3 pre-commit: update 2024-11-08 10:32:04 +01:00
Johan Andersson
a69c8c8ccc svtplay: fix a crash on pages with upcoming videos 2024-11-08 10:29:58 +01:00

View File

@ -114,6 +114,9 @@ class Svtplay(Service, MetadataThumbMixin):
subfix = lang
yield from subtitle_probe(copy.copy(self.config), i["url"], subfix=subfix, output=self.output)
if not janson["videoReferences"]:
yield ServiceError("Media doesn't have any associated videos.")
return
drm = janson["rights"]["drmCopyProtection"]
if not drm and "variants" in janson and "default" in janson["variants"]:
if len(janson["videoReferences"]) == 0: