Upgrade yt_dlp and download script
This commit is contained in:
@@ -20,7 +20,7 @@ class YoukuIE(InfoExtractor):
|
||||
_VALID_URL = r'''(?x)
|
||||
(?:
|
||||
https?://(
|
||||
(?:v|player)\.youku\.com/(?:v_show/id_|player\.php/sid/)|
|
||||
(?:v|play(?:er)?)\.(?:youku|tudou)\.com/(?:v_show/id_|player\.php/sid/)|
|
||||
video\.tudou\.com/v/)|
|
||||
youku:)
|
||||
(?P<id>[A-Za-z0-9]+)(?:\.html|/v\.swf|)
|
||||
@@ -42,11 +42,11 @@ class YoukuIE(InfoExtractor):
|
||||
'uploader_id': '322014285',
|
||||
'uploader_url': 'http://i.youku.com/u/UMTI4ODA1NzE0MA==',
|
||||
'tags': list,
|
||||
'skip': '404',
|
||||
},
|
||||
'params': {
|
||||
'videopassword': '100600',
|
||||
},
|
||||
'skip': '404',
|
||||
}, {
|
||||
# /play/get.json contains streams with "channel_type":"tail"
|
||||
'url': 'http://v.youku.com/v_show/id_XOTUxMzg4NDMy.html',
|
||||
@@ -87,11 +87,24 @@ class YoukuIE(InfoExtractor):
|
||||
'uploader_url': 'https://www.youku.com/profile/index/?uid=UNjU2MzY1MzM1Ng==',
|
||||
'tags': list,
|
||||
},
|
||||
}, {
|
||||
'url': 'https://play.tudou.com/v_show/id_XNjAxNjI2OTU3Ng==.html?',
|
||||
'info_dict': {
|
||||
'id': 'XNjAxNjI2OTU3Ng',
|
||||
'ext': 'mp4',
|
||||
'title': '阿斯塔意识到哈里杀了人,自己被骗了',
|
||||
'thumbnail': 'https://m.ykimg.com/0541010164F732752794D4D7B70331D1',
|
||||
'uploader_id': '88758207',
|
||||
'tags': [],
|
||||
'uploader_url': 'https://www.youku.com/profile/index/?uid=UMzU1MDMyODI4',
|
||||
'uploader': '英美剧场',
|
||||
'duration': 72.91,
|
||||
},
|
||||
}]
|
||||
|
||||
@staticmethod
|
||||
def get_ysuid():
|
||||
return '%d%s' % (int(time.time()), ''.join(
|
||||
return '{}{}'.format(int(time.time()), ''.join(
|
||||
random.choices(string.ascii_letters, k=3)))
|
||||
|
||||
def get_format_name(self, fm):
|
||||
@@ -123,7 +136,7 @@ class YoukuIE(InfoExtractor):
|
||||
# request basic data
|
||||
basic_data_params = {
|
||||
'vid': video_id,
|
||||
'ccode': '0524',
|
||||
'ccode': '0564',
|
||||
'client_ip': '192.168.1.1',
|
||||
'utid': cna,
|
||||
'client_ts': time.time() / 1000,
|
||||
@@ -260,7 +273,7 @@ class YoukuShowIE(InfoExtractor):
|
||||
continue
|
||||
_, new_entries = self._extract_entries(
|
||||
'http://list.youku.com/show/episode', show_id,
|
||||
note='Downloading playlist data page %d' % (idx + 1),
|
||||
note=f'Downloading playlist data page {idx + 1}',
|
||||
query={
|
||||
'id': page_config['showid'],
|
||||
'stage': reload_id,
|
||||
|
Reference in New Issue
Block a user