Skip to content

A feature-rich command-line audio/video downloader

[ie/boosty] Improve metadata extraction (#15543)

Md5Lukasf9a06197f563
diff --git a/yt_dlp/extractor/boosty.py b/yt_dlp/extractor/boosty.py
index d3aab7a1a8..f397391c1a 100644
--- a/yt_dlp/extractor/boosty.py
+++ b/yt_dlp/extractor/boosty.py
@@ -21,21 +21,44 @@ class BoostyIE(InfoExtractor):
'url': 'https://boosty.to/kuplinov/posts/e55d050c-e3bb-4873-a7db-ac7a49b40c38',
'info_dict': {
'id': 'd7473824-352e-48e2-ae53-d4aa39459968',
- 'title': 'phasma_3',
+ 'title': 'Бан? А! Бан! (Phasmophobia)',
+ 'alt_title': 'Бан? А! Бан! (Phasmophobia)',
'channel': 'Kuplinov',
'channel_id': '7958701',
'timestamp': 1655031975,
'upload_date': '20220612',
'release_timestamp': 1655049000,
'release_date': '20220612',
- 'modified_timestamp': 1668680993,
- 'modified_date': '20221117',
+ 'modified_timestamp': 1743328648,
+ 'modified_date': '20250330',
'tags': ['куплинов', 'phasmophobia'],
'like_count': int,
'ext': 'mp4',
'duration': 105,
'view_count': int,
- 'thumbnail': r're:^https://i\.mycdn\.me/videoPreview\?',
+ 'thumbnail': r're:^https://iv\.okcdn\.ru/videoPreview\?',
+ },
+ }, {
+ # single ok_video with truncated title
+ 'url': 'https://boosty.to/kuplinov/posts/cc09b7f9-121e-40b8-9392-4a075ef2ce53',
+ 'info_dict': {
+ 'id': 'fb5ea762-6303-4557-9a17-157947326810',
+ 'title': 'Какая там активность была? Не слышу! Повтори еще пару раз! (Phas',
+ 'alt_title': 'Какая там активность была? Не слышу! Повтори еще пару раз! (Phasmophobia)',
+ 'channel': 'Kuplinov',
+ 'channel_id': '7958701',
+ 'timestamp': 1655031930,
+ 'upload_date': '20220612',
+ 'release_timestamp': 1655048400,
+ 'release_date': '20220612',
+ 'modified_timestamp': 1743328616,
+ 'modified_date': '20250330',
+ 'tags': ['куплинов', 'phasmophobia'],
+ 'like_count': int,
+ 'ext': 'mp4',
+ 'duration': 39,
+ 'view_count': int,
+ 'thumbnail': r're:^https://iv\.okcdn\.ru/videoPreview\?',
},
}, {
# multiple ok_video
@@ -109,36 +132,41 @@ class BoostyIE(InfoExtractor):
'thumbnail': r're:^https://i\.mycdn\.me/videoPreview\?',
},
}],
+ 'skip': 'post has been deleted',
}, {
# single external video (youtube)
- 'url': 'https://boosty.to/denischuzhoy/posts/6094a487-bcec-4cf8-a453-43313b463c38',
+ 'url': 'https://boosty.to/futuremusicproduction/posts/32a8cae2-3252-49da-b285-0e014bc6e565',
'info_dict': {
- 'id': 'EXelTnve5lY',
- 'title': 'Послание Президента Федеральному Собранию | Класс народа',
- 'upload_date': '20210425',
- 'channel': 'Денис Чужой',
- 'tags': 'count:10',
+ 'id': '-37FW_YQ3B4',
+ 'title': 'Afro | Deep House FREE FLP',
+ 'media_type': 'video',
+ 'upload_date': '20250829',
+ 'timestamp': 1756466005,
+ 'channel': 'Future Music Production',
+ 'tags': 'count:0',
'like_count': int,
- 'ext': 'mp4',
- 'duration': 816,
+ 'ext': 'm4a',
+ 'duration': 170,
'view_count': int,
'thumbnail': r're:^https://i\.ytimg\.com/',
'age_limit': 0,
'availability': 'public',
'categories': list,
'channel_follower_count': int,
- 'channel_id': 'UCCzVNbWZfYpBfyofCCUD_0w',
- 'channel_is_verified': bool,
+ 'channel_id': 'UCKVYrFBYmci1e-T8NeHw2qg',
'channel_url': r're:^https://www\.youtube\.com/',
'comment_count': int,
'description': str,
- 'heatmap': 'count:100',
'live_status': str,
'playable_in_embed': bool,
'uploader': str,
'uploader_id': str,
'uploader_url': r're:^https://www\.youtube\.com/',
},
+ 'expected_warnings': [
+ 'Remote components challenge solver script',
+ 'n challenge solving failed',
+ ],
}]
_MP4_TYPES = ('tiny', 'lowest', 'low', 'medium', 'high', 'full_hd', 'quad_hd', 'ultra_hd')
@@ -207,13 +235,14 @@ class BoostyIE(InfoExtractor):
video_id = item.get('id') or post_id
entries.append({
'id': video_id,
+ 'alt_title': post_title,
'formats': self._extract_formats(item.get('playerUrls'), video_id),
**common_metadata,
**traverse_obj(item, {
'title': ('title', {str}),
'duration': ('duration', {int_or_none}),
'view_count': ('viewsCounter', {int_or_none}),
- 'thumbnail': (('previewUrl', 'defaultPreview'), {url_or_none}),
+ 'thumbnail': (('preview', 'defaultPreview'), {url_or_none}),
}, get_all=False)})
if not entries and not post.get('hasAccess'):