Skip to content

Commit

Permalink
[ie/youku] Improve tudou.com support (#8160)
Browse files Browse the repository at this point in the history
Authored by: naginatana
  • Loading branch information
dry213 committed Oct 9, 2023
1 parent 1c51c52 commit b7098d4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion yt_dlp/extractor/youku.py
Expand Up @@ -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|)
Expand Down Expand Up @@ -87,6 +87,19 @@ 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
Expand Down

0 comments on commit b7098d4

Please sign in to comment.