1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 12:15:40 +01:00

Viaplay: Fix regexp for JSON episode data extraction

This commit is contained in:
Jan 2017-12-20 21:51:31 +01:00 committed by Johan Andersson
parent c26bb3ccc5
commit 8917d5bd8e

View File

@ -82,7 +82,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
if clips: if clips:
return episodenr return episodenr
else: else:
match = re.search('"ContentPageProgramStore":({.*}),"ApplicationStore', self.get_urldata()) match = re.search('"ContentPageProgramStore":({.*}),"StartPageStore', self.get_urldata())
if match: if match:
janson = json.loads(match.group(1)) janson = json.loads(match.group(1))
for i in janson["format"]["videos"].keys(): for i in janson["format"]["videos"].keys():