mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
viaplay: add support for viafree.se
This commit is contained in:
parent
31aaf468c0
commit
e0caf5c822
@ -26,7 +26,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
|
||||
'tv3play.se', 'tv6play.se', 'tv8play.se', 'tv10play.se',
|
||||
'tv3play.no', 'tv3play.dk', 'tv6play.no', 'viasat4play.no',
|
||||
'tv3play.ee', 'tv3play.lv', 'tv3play.lt', 'tvplay.lv', 'viagame.com',
|
||||
'juicyplay.se']
|
||||
'juicyplay.se', 'viafree.se']
|
||||
|
||||
def _get_video_id(self):
|
||||
"""
|
||||
@ -43,6 +43,10 @@ class Viaplay(Service, OpenGraphThumbMixin):
|
||||
if match:
|
||||
return match.group(1)
|
||||
|
||||
match = re.search(r'mtgx-play.(\d+)"', html_data)
|
||||
if match:
|
||||
return match.group(1)
|
||||
|
||||
parse = urlparse(self.url)
|
||||
match = re.search(r'/\w+/(\d+)', parse.path)
|
||||
if match:
|
||||
|
Loading…
Reference in New Issue
Block a user