Authored by: bashonly
This commit is contained in:
bashonly 2024-12-02 23:01:00 -06:00
parent 8f547eac02
commit 868bc14743
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

View File

@ -597,11 +597,9 @@ class VKUserVideosIE(VKBaseIE):
self._search_json(r'\bvar newCur\s*=', webpage, 'cursor data', u_id),
('oid', {int}, {str_or_none}, {require('page id')}))
section = traverse_obj(parse_qs(url), ('section', 0)) or 'all'
elif '_' in u_id:
page_id, section = u_id.split('_', 1)
section = f'playlist_{section}'
else:
raise ExtractorError('Invalid URL', expected=True)
page_id, _, section = u_id.partition('_')
section = f'playlist_{section}'
playlist_title = clean_html(get_element_by_class('VideoInfoPanel__title', webpage))
return self.playlist_result(self._entries(page_id, section), f'{page_id}_{section}', playlist_title)