1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

tv4play: improve detection

fixes: #1418
This commit is contained in:
Johan Andersson 2021-09-13 21:52:47 +02:00
parent 4edb96f18d
commit 1c9642c0bf

View File

@ -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}"]