mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[iqilu]page vars changed
This commit is contained in:
parent
4d0803bafb
commit
6dd51760c1
@ -3,14 +3,18 @@
|
||||
__all__ = ['iqilu_download']
|
||||
|
||||
from ..common import *
|
||||
import json
|
||||
|
||||
def iqilu_download(url, output_dir = '.', merge = False, info_only = False, **kwargs):
|
||||
''''''
|
||||
if re.match(r'http://v.iqilu.com/\w+', url):
|
||||
patt = r'url\s*:\s*\[([^\]]+)\]'
|
||||
|
||||
#URL in webpage
|
||||
html = get_content(url)
|
||||
url = match1(html, r"<input type='hidden' id='playerId' url='(.+)'")
|
||||
player_data = '[' + match1(html, patt) + ']'
|
||||
urls = json.loads(player_data)
|
||||
url = urls[0]['stream_url']
|
||||
|
||||
#grab title
|
||||
title = match1(html, r'<meta name="description" content="(.*?)\"\W')
|
||||
|
Loading…
Reference in New Issue
Block a user