diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:11 +0000 |
commit | fd5a06560caab95c71a2e2e805efa8d0f3a696a0 (patch) | |
tree | e1c600b8612bc4b301e2f51b875fcd835c5008cc /yt_dlp/extractor/veoh.py | |
parent | Releasing progress-linux version 2024.05.27-1~progress7.99u1. (diff) | |
download | yt-dlp-fd5a06560caab95c71a2e2e805efa8d0f3a696a0.tar.xz yt-dlp-fd5a06560caab95c71a2e2e805efa8d0f3a696a0.zip |
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | yt_dlp/extractor/veoh.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/yt_dlp/extractor/veoh.py b/yt_dlp/extractor/veoh.py index 92ff865..dc1bf96 100644 --- a/yt_dlp/extractor/veoh.py +++ b/yt_dlp/extractor/veoh.py @@ -80,7 +80,7 @@ class VeohIE(InfoExtractor): 'age_limit': 18, 'categories': ['technology_and_gaming', 'gaming'], 'tags': ['puzzle', 'of', 'flesh'], - } + }, }] def _real_extract(self, url): @@ -138,17 +138,17 @@ class VeohUserIE(VeohIE): # XXX: Do not subclass from concrete IE 'url': 'https://www.veoh.com/users/valentinazoe', 'info_dict': { 'id': 'valentinazoe', - 'title': 'valentinazoe (Uploads)' + 'title': 'valentinazoe (Uploads)', }, - 'playlist_mincount': 75 + 'playlist_mincount': 75, }, { 'url': 'https://www.veoh.com/users/PiensaLibre', 'info_dict': { 'id': 'PiensaLibre', - 'title': 'PiensaLibre (Uploads)' + 'title': 'PiensaLibre (Uploads)', }, - 'playlist_mincount': 2 + 'playlist_mincount': 2, }] _PAGE_SIZE = 16 @@ -159,14 +159,14 @@ class VeohUserIE(VeohIE): # XXX: Do not subclass from concrete IE note=f'Downloading videos page {page + 1}', headers={ 'x-csrf-token': self._TOKEN, - 'content-type': 'application/json;charset=UTF-8' + 'content-type': 'application/json;charset=UTF-8', }, data=json.dumps({ 'username': uploader, 'maxResults': self._PAGE_SIZE, 'page': page + 1, - 'requestName': 'userPage' - }).encode('utf-8')) + 'requestName': 'userPage', + }).encode()) if not response.get('success'): raise ExtractorError(response['message']) |