From d24545e66b83f8f79b59c9d19e1213144253295f Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Fri, 13 Oct 2017 23:09:50 +0200 Subject: [PATCH] [youku] update stream_types (2017-10-13) --- src/you_get/extractors/youku.py | 34 ++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/you_get/extractors/youku.py b/src/you_get/extractors/youku.py index 1ae49e75..d3e4c22d 100644 --- a/src/you_get/extractors/youku.py +++ b/src/you_get/extractors/youku.py @@ -41,22 +41,26 @@ class Youku(VideoExtractor): mobile_ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36' dispatcher_url = 'vali.cp31.ott.cibntv.net' - # Last updated: 2015-11-24 + # Last updated: 2017-10-13 stream_types = [ - {'id': 'mp4hd3v2', 'alias-of': 'hd3v2'}, - {'id': 'hd3v2', 'container': 'mp4', 'video_profile': '1080P'}, - {'id': 'mp4hd3', 'alias-of': 'hd3'}, - {'id': 'hd3', 'container': 'flv', 'video_profile': '1080P'}, - {'id': 'mp4hd2v2', 'alias-of': 'hd2v2'}, - {'id': 'hd2v2', 'container': 'mp4', 'video_profile': '超清'}, - {'id': 'mp4hd2', 'alias-of': 'hd2'}, - {'id': 'hd2', 'container': 'flv', 'video_profile': '超清'}, - {'id': 'mp4hd', 'alias-of': 'mp4'}, - {'id': 'mp4sd', 'alias-of': 'mp4'}, - {'id': 'mp4', 'container': 'mp4', 'video_profile': '高清'}, - {'id': 'flvhd', 'container': 'flv', 'video_profile': '标清'}, - {'id': 'flv', 'container': 'flv', 'video_profile': '标清'}, - {'id': '3gphd', 'container': 'mp4', 'video_profile': '标清(3GP)'}, + {'id': 'hd3', 'container': 'flv', 'video_profile': '1080P'}, + {'id': 'hd3v2', 'container': 'flv', 'video_profile': '1080P'}, + {'id': 'mp4hd3', 'container': 'mp4', 'video_profile': '1080P'}, + {'id': 'mp4hd3v2', 'container': 'mp4', 'video_profile': '1080P'}, + + {'id': 'hd2', 'container': 'flv', 'video_profile': '超清'}, + {'id': 'hd2v2', 'container': 'flv', 'video_profile': '超清'}, + {'id': 'mp4hd2', 'container': 'mp4', 'video_profile': '超清'}, + {'id': 'mp4hd2v2', 'container': 'mp4', 'video_profile': '超清'}, + + {'id': 'flvhd', 'container': 'flv', 'video_profile': '高清'}, + {'id': 'mp4hd', 'container': 'mp4', 'video_profile': '高清'}, + {'id': '3gphd', 'container': 'mp4', 'video_profile': '高清'}, + + {'id': 'mp4sd', 'container': 'mp4', 'video_profile': '标清'}, + # obsolete? + {'id': 'flv', 'container': 'flv', 'video_profile': '标清'}, + {'id': 'mp4', 'container': 'mp4', 'video_profile': '标清'}, ] def __init__(self):