Merge 3a8423a083d38a6102dae6f364bc94bba8fa0515 into 1d3751c3fe50b203d3e2bff71d866c8c500f8288

This commit is contained in:
Marco Sirabella 2023-02-24 02:17:15 -05:00 committed by GitHub
commit 3fc04ceeb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,6 +516,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'ext': 'mp4', 'ext': 'mp4',
'title': 'youtube-dl test video "\'/\\ä↭𝕐', 'title': 'youtube-dl test video "\'/\\ä↭𝕐',
'uploader': 'Philipp Hagemeister', 'uploader': 'Philipp Hagemeister',
'channel': 'Philipp Hagemeister',
'uploader_id': 'phihag', 'uploader_id': 'phihag',
'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/phihag', 'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/phihag',
'channel': 'Philipp Hagemeister', 'channel': 'Philipp Hagemeister',
@ -1253,6 +1254,21 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'url': 'https://www.youtube.com/watch?v=nGC3D_FkCmg', 'url': 'https://www.youtube.com/watch?v=nGC3D_FkCmg',
'only_matching': True, 'only_matching': True,
}, },
{
# Translated title
'url': 'UnIhRpIT7nc',
'info_dict': {
'id': 'UnIhRpIT7nc',
'ext': 'mp4',
'title': 'inabakumori - Lagtrain (Vo. Kaai Yuki) / 稲葉曇『ラグトレイン』Vo. 歌愛ユキ',
# Translated description
'description': 'md5:d0865e57701acd99b4d89679a66e9632',
'upload_date': '20200716',
'uploader': '稲葉曇',
'channel': 'inabakumori',
'uploader_id': 'UCNElM45JypxqAR73RoUQ10g',
'uploader_url': r're:https?://(?:www\.)?youtube\.com/channel/UCNElM45JypxqAR73RoUQ10g',
},
{ {
# restricted location, https://github.com/ytdl-org/youtube-dl/issues/28685 # restricted location, https://github.com/ytdl-org/youtube-dl/issues/28685
'url': 'cBvYw8_A0vQ', 'url': 'cBvYw8_A0vQ',
@ -1874,10 +1890,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
player_response, player_response,
lambda x: x['microformat']['playerMicroformatRenderer'], lambda x: x['microformat']['playerMicroformatRenderer'],
dict) or {} dict) or {}
video_title = video_details.get('title') \ video_title = get_text(microformat.get('title')) \
or get_text(microformat.get('title')) \ or video_details.get('title') \
or search_meta(['og:title', 'twitter:title', 'title']) or search_meta(['og:title', 'twitter:title', 'title'])
video_description = video_details.get('shortDescription') video_description = get_text(microformat.get('description')) \
or video_details.get('shortDescription')
if not smuggled_data.get('force_singlefeed', False): if not smuggled_data.get('force_singlefeed', False):
if not self._downloader.params.get('noplaylist'): if not self._downloader.params.get('noplaylist'):