mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
parent
4edb96f18d
commit
1c9642c0bf
@ -40,11 +40,11 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
return
|
||||
|
||||
jansson = json.loads(match.group(1))
|
||||
if "assetId" not in jansson["props"]["pageProps"]:
|
||||
if "assetId" not in jansson["query"]:
|
||||
yield ServiceError("Cant find video id for the video")
|
||||
return
|
||||
|
||||
vid = jansson["props"]["pageProps"]["assetId"]
|
||||
vid = jansson["query"]["assetId"]
|
||||
janson2 = jansson["props"]["pageProps"]["initialApolloState"]
|
||||
item = janson2[f"VideoAsset:{vid}"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user