mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +03:00
fix yinyuetai, due to api changed
fix #1102 update api url Signed-off-by: Zhang Ning <zhangn1985@gmail.com>
This commit is contained in:
parent
08d65c237c
commit
3c0e648fca
@ -5,7 +5,7 @@ __all__ = ['yinyuetai_download', 'yinyuetai_download_by_id']
|
|||||||
from ..common import *
|
from ..common import *
|
||||||
|
|
||||||
def yinyuetai_download_by_id(vid, title=None, output_dir='.', merge=True, info_only=False):
|
def yinyuetai_download_by_id(vid, title=None, output_dir='.', merge=True, info_only=False):
|
||||||
video_info = json.loads(get_html('http://www.yinyuetai.com/insite/get-video-info?json=true&videoId=%s' % vid))
|
video_info = json.loads(get_html('http://ext.yinyuetai.com/main/get-h-mv-info?json=true&videoId=%s' % vid))
|
||||||
url_models = video_info['videoInfo']['coreVideoInfo']['videoUrlModels']
|
url_models = video_info['videoInfo']['coreVideoInfo']['videoUrlModels']
|
||||||
url_models = sorted(url_models, key=lambda i: i['qualityLevel'])
|
url_models = sorted(url_models, key=lambda i: i['qualityLevel'])
|
||||||
url = url_models[-1]['videoUrl']
|
url = url_models[-1]['videoUrl']
|
||||||
|
Loading…
Reference in New Issue
Block a user