mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
viafree: support for downloading video from the program page.
This commit is contained in:
parent
585ea7b0d6
commit
18b00ae673
@ -58,8 +58,10 @@ class Viaplay(Service, OpenGraphThumbMixin):
|
||||
season = match.group(1)
|
||||
else:
|
||||
match = self._conentpage(self.get_urldata())
|
||||
if match:
|
||||
print("printa")
|
||||
if match: # this only happen on the program page?
|
||||
janson2 = json.loads(match.group(1))
|
||||
season = janson2["formatPage"]["format"]["seasonNumber"]
|
||||
return janson2["formatPage"]["format"]["videos"][str(season)]["program"][0]["id"]
|
||||
return None
|
||||
if "videoIdOrEpisodeNumber" in jansson:
|
||||
videp = jansson["videoIdOrEpisodeNumber"]
|
||||
|
Loading…
Reference in New Issue
Block a user