mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-06-27 17:08:32 +00:00
Merge 6a4f22ee75
into eff0759705
This commit is contained in:
commit
7117dd7b0a
@ -1751,6 +1751,41 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
'media_type': 'short',
|
'media_type': 'short',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'url': 'https://www.youtube.com/watch?v=8047tcn3o5U',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '8047tcn3o5U',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Rooting: Layering and Cuttings in Pots',
|
||||||
|
'description': r're:➤When making new plants,',
|
||||||
|
'uploader': 'MiradasBiologicas in English',
|
||||||
|
'uploader_id': '@Miradasbiologicas',
|
||||||
|
'uploader_url': 'https://www.youtube.com/@Miradasbiologicas',
|
||||||
|
'channel': 'MiradasBiologicas in English',
|
||||||
|
'channel_id': 'UCNUwfzPMUFZYXOOCHaYnp7g',
|
||||||
|
'channel_url': 'https://www.youtube.com/channel/UCNUwfzPMUFZYXOOCHaYnp7g',
|
||||||
|
'channel_is_verified': True,
|
||||||
|
'thumbnail': r're:https?://.+/.+\.(?:jpg|webp)',
|
||||||
|
'playable_in_embed': False,
|
||||||
|
'age_limit': 0,
|
||||||
|
'duration': 601,
|
||||||
|
'timestamp': 1699623740,
|
||||||
|
'upload_date': '20231110',
|
||||||
|
'availability': 'public',
|
||||||
|
'live_status': 'not_live',
|
||||||
|
'view_count': int,
|
||||||
|
'like_count': int,
|
||||||
|
'comment_count': int,
|
||||||
|
'channel_follower_count': int,
|
||||||
|
'categories': ['Howto & Style'],
|
||||||
|
'tags': 'count:27',
|
||||||
|
'media_type': 'video',
|
||||||
|
},
|
||||||
|
'params': {
|
||||||
|
'extractor_args': {'youtube': {'lang': ['en']}},
|
||||||
|
'skip_download': True,
|
||||||
|
},
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
_WEBPAGE_TESTS = [
|
_WEBPAGE_TESTS = [
|
||||||
@ -4213,8 +4248,15 @@ def process_language(container, base_url, lang_code, sub_name, client_name, quer
|
|||||||
elif info.get('view_count') is None:
|
elif info.get('view_count') is None:
|
||||||
info['view_count'] = vc
|
info['view_count'] = vc
|
||||||
|
|
||||||
|
if self._preferred_lang:
|
||||||
|
info['title'] = self._get_text(vpir, 'title') or info['title']
|
||||||
|
|
||||||
vsir = get_first(contents, 'videoSecondaryInfoRenderer')
|
vsir = get_first(contents, 'videoSecondaryInfoRenderer')
|
||||||
if vsir:
|
if vsir:
|
||||||
|
if self._preferred_lang:
|
||||||
|
info['description'] = traverse_obj(
|
||||||
|
vsir, ('attributedDescription', 'content', {str}), default=info['description'])
|
||||||
|
|
||||||
vor = traverse_obj(vsir, ('owner', 'videoOwnerRenderer'))
|
vor = traverse_obj(vsir, ('owner', 'videoOwnerRenderer'))
|
||||||
info.update({
|
info.update({
|
||||||
'channel': self._get_text(vor, 'title'),
|
'channel': self._get_text(vor, 'title'),
|
||||||
|
Loading…
Reference in New Issue
Block a user