diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 66b0257df..446ca54f2 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -516,6 +516,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 'ext': 'mp4', 'title': 'youtube-dl test video "\'/\\ä↭𝕐', 'uploader': 'Philipp Hagemeister', + 'channel': 'Philipp Hagemeister', 'uploader_id': 'phihag', 'uploader_url': r're:https?://(?:www\.)?youtube\.com/user/phihag', 'channel': 'Philipp Hagemeister', @@ -1254,6 +1255,21 @@ class YoutubeIE(YoutubeBaseInfoExtractor): '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 'url': 'cBvYw8_A0vQ', 'info_dict': { @@ -1874,10 +1890,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor): player_response, lambda x: x['microformat']['playerMicroformatRenderer'], dict) or {} - video_title = video_details.get('title') \ - or get_text(microformat.get('title')) \ + video_title = get_text(microformat.get('title')) \ + or video_details.get('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 self._downloader.params.get('noplaylist'):