mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 12:42:29 +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
b9428bd9c7
commit
8e4877b4ff
@ -5,7 +5,7 @@ __all__ = ['yinyuetai_download', 'yinyuetai_download_by_id']
|
||||
from ..common import *
|
||||
|
||||
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 = sorted(url_models, key=lambda i: i['qualityLevel'])
|
||||
url = url_models[-1]['videoUrl']
|
||||
|
Loading…
Reference in New Issue
Block a user