diff --git a/yt_dlp/extractor/vk.py b/yt_dlp/extractor/vk.py index 4f16797371..0942750b9b 100644 --- a/yt_dlp/extractor/vk.py +++ b/yt_dlp/extractor/vk.py @@ -823,7 +823,7 @@ def _parse_track_meta(self, meta, track_id=None): # 01 = marked by RKN as "foreign agent" # 10 = explicit lyrics # 11 = both E lyrics and "foreign agent" - 'age_limit': 18 if len_ >= 30 and meta[30] else None, + 'age_limit': 18 if len_ >= 30 and meta[30] else 0, } def _raise_if_blocked(self, meta, track_id): @@ -864,6 +864,7 @@ class VKMusicTrackIE(VKMusicBaseIE): 'artists': ['Skillet'], 'duration': 230, 'thumbnail': r're:https?://.*\.jpg', + 'age_limit': 0, }, 'params': { 'skip_download': True, @@ -881,11 +882,29 @@ class VKMusicTrackIE(VKMusicBaseIE): 'artists': ['Pusha T', 'Stormzy'], 'duration': 211, 'thumbnail': r're:https?://.*\.jpg', + 'age_limit': 0, }, 'params': { 'skip_download': True, }, }, + { + 'url': 'https://vk.com/audio-2001533203_5533203', + 'info_dict': { + 'id': '-2001533203_5533203', + 'ext': 'm4a', + 'title': 'Linkin Park feat. Page Hamilton - All for Nothing (feat. Page Hamilton)', + 'track': 'All for Nothing (feat. Page Hamilton)', + 'uploader': 'Linkin Park feat. Page Hamilton', + 'artists': ['Linkin Park', 'Page Hamilton'], + 'duration': 213, + 'thumbnail': r're:https?://.*\.jpg', + 'age_limit': 18, + }, + 'params': { + 'skip_download': True, + } + }, { 'note': 'meta is AudioPlayerBlock__root[data-exec], no artists in 17/18', 'skip': 'authentication required', @@ -916,6 +935,7 @@ class VKMusicTrackIE(VKMusicBaseIE): 'artists': ['Jack Thomas', 'Nico & Vinz'], 'duration': 207, 'thumbnail': r're:https?://.*\.jpg', + 'age_limit': 0, }, 'params': { 'skip_download': True,