diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
commit | 7e21328585afda6d66f98ca476301680eeffac32 (patch) | |
tree | 266a4e7b20443f94572748781d71fc0375a15037 /yt_dlp/extractor/vk.py | |
parent | Adding upstream version 2024.05.27. (diff) | |
download | yt-dlp-7e21328585afda6d66f98ca476301680eeffac32.tar.xz yt-dlp-7e21328585afda6d66f98ca476301680eeffac32.zip |
Adding upstream version 2024.07.01.upstream/2024.07.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/vk.py')
-rw-r--r-- | yt_dlp/extractor/vk.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yt_dlp/extractor/vk.py b/yt_dlp/extractor/vk.py index 9a3c75b..6ccc701 100644 --- a/yt_dlp/extractor/vk.py +++ b/yt_dlp/extractor/vk.py @@ -140,7 +140,7 @@ class VKIE(VKBaseIE): 'comment_count': int, 'like_count': int, 'thumbnail': r're:https?://.+(?:\.jpg|getVideoPreview.*)$', - } + }, }, { 'note': 'Embedded video', @@ -220,7 +220,7 @@ class VKIE(VKBaseIE): 'like_count': int, 'view_count': int, 'thumbnail': r're:https?://.+x1080$', - 'tags': list + 'tags': list, }, }, { @@ -335,7 +335,7 @@ class VKIE(VKBaseIE): mv_data = opts.get('mvData') or {} player = opts.get('player') or {} else: - video_id = '%s_%s' % (mobj.group('oid'), mobj.group('id')) + video_id = '{}_{}'.format(mobj.group('oid'), mobj.group('id')) info_page = self._download_webpage( 'http://vk.com/video_ext.php?' + mobj.group('embed_query'), video_id) @@ -530,7 +530,7 @@ class VKUserVideosIE(VKBaseIE): 'url': 'https://vk.com/video/playlist/-174476437_2', 'info_dict': { 'id': '-174476437_playlist_2', - 'title': 'Анонсы' + 'title': 'Анонсы', }, 'playlist_mincount': 108, }] @@ -580,7 +580,7 @@ class VKUserVideosIE(VKBaseIE): section = 'all' playlist_title = clean_html(get_element_by_class('VideoInfoPanel__title', webpage)) - return self.playlist_result(self._entries(page_id, section), '%s_%s' % (page_id, section), playlist_title) + return self.playlist_result(self._entries(page_id, section), f'{page_id}_{section}', playlist_title) class VKWallPostIE(VKBaseIE): |