mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
[ifeng] fix #1358
This commit is contained in:
parent
550ef5aeb2
commit
ce759590d3
@ -13,7 +13,7 @@ def ifeng_download_by_id(id, title = None, output_dir = '.', merge = True, info_
|
|||||||
url = r1(r'VideoPlayUrl="([^"]+)"', xml)
|
url = r1(r'VideoPlayUrl="([^"]+)"', xml)
|
||||||
from random import randint
|
from random import randint
|
||||||
r = randint(10, 19)
|
r = randint(10, 19)
|
||||||
url = url.replace('http://video.ifeng.com/', 'http://video%s.ifeng.com/' % r)
|
url = url.replace('http://wideo.ifeng.com/', 'http://ips.ifeng.com/wideo.ifeng.com/')
|
||||||
type, ext, size = url_info(url)
|
type, ext, size = url_info(url)
|
||||||
|
|
||||||
print_info(site_info, title, ext, size)
|
print_info(site_info, title, ext, size)
|
||||||
|
Loading…
Reference in New Issue
Block a user