mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
flash link can be downloaded
This commit is contained in:
parent
f412a9e9c5
commit
f1ed97c500
@ -36,9 +36,11 @@ def sohu_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
assert data['clipsURL'][0].endswith('.mp4')
|
assert data['clipsURL'][0].endswith('.mp4')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# my.tv link doesn't include clip info anymore, below block is useless
|
if re.match(r'http://share.vrs.sohu.com', url):
|
||||||
vid = r1('vid\s*=\s*\'(\d+)\'', get_html(url))
|
vid = r1('id=(\d+)', url)
|
||||||
data = json.loads(get_decoded_html('http://my.tv.sohu.com/videinfo.jhtml?m=viewnew&vid=%s' % vid))
|
else:
|
||||||
|
vid = r1('vid\s*=\s*\'(\d+)\'', get_html(url))
|
||||||
|
data = json.loads(get_decoded_html('http://my.tv.sohu.com/play/videonew.do?vid=%s&referer=http://my.tv.sohu.com' % vid))
|
||||||
host = data['allot']
|
host = data['allot']
|
||||||
prot = data['prot']
|
prot = data['prot']
|
||||||
urls = []
|
urls = []
|
||||||
|
Loading…
Reference in New Issue
Block a user