1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

svtplay: videoTitlePage renamed to videoPage

svtplay changed their names again
fixes: https://github.com/spaam/svtplay-dl/issues/620
This commit is contained in:
qnorsten 2017-05-03 16:03:44 +02:00
parent bccfc1fa3a
commit ad6180e48d

View File

@ -38,7 +38,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
if not match:
yield ServiceError("Cant find video info.")
return
janson = json.loads(match.group(1))["videoTitlePage"]
janson = json.loads(match.group(1))["videoPage"]
if "programTitle" not in janson["video"]:
yield ServiceError("Can't find any video on that page")
@ -53,7 +53,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
if not match:
yield ServiceError("Cant find video info.")
return
janson = json.loads(match.group(1))["videoTitlePage"]
janson = json.loads(match.group(1))["videoPage"]
if "live" in janson["video"]:
self.options.live = janson["video"]["live"]
@ -213,7 +213,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
if match:
tab = match.group(1)
items = dataj["videoTitlePage"]["relatedVideosTabs"]
items = dataj["videoPage"]["relatedVideosTabs"]
for i in items:
if tab:
if i["slug"] == tab: