mega: fix

This commit is contained in:
Intel1
2018-07-11 15:20:25 -05:00
committed by GitHub
parent 810b33858b
commit bb0c75847b
2 changed files with 3 additions and 1 deletions

View File

@@ -12,7 +12,7 @@
"url": "https://\\1"
},
{
"pattern": "(mega.nz/\\#\\![A-Za-z0-9\\-\\_]+\\![A-Za-z0-9\\-\\_]+)",
"pattern": "(mega.nz/(?:embed|)\\#\\![A-Za-z0-9\\-\\_]+\\![A-Za-z0-9\\-\\_]+)",
"url": "https://\\1"
},
{

View File

@@ -15,6 +15,8 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
video_urls = []
from megaserver import Client
page_url = page_url.replace('/embed#!', '/#!')
c = Client(url=page_url, is_playing_fnc=platformtools.is_playing)
files = c.get_files()