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/prankcast.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 'yt_dlp/extractor/prankcast.py')
-rw-r--r-- | yt_dlp/extractor/prankcast.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/yt_dlp/extractor/prankcast.py b/yt_dlp/extractor/prankcast.py index 56cd40d..84e6f7e 100644 --- a/yt_dlp/extractor/prankcast.py +++ b/yt_dlp/extractor/prankcast.py @@ -22,8 +22,8 @@ class PrankCastIE(InfoExtractor): 'description': '', 'categories': ['prank'], 'tags': ['prank call', 'prank', 'live show'], - 'upload_date': '20220825' - } + 'upload_date': '20220825', + }, }, { 'url': 'https://prankcast.com/phonelosers/showreel/2048-NOT-COOL', 'info_dict': { @@ -39,8 +39,8 @@ class PrankCastIE(InfoExtractor): 'description': '', 'categories': ['prank'], 'tags': ['prank call', 'prank', 'live show'], - 'upload_date': '20221006' - } + 'upload_date': '20221006', + }, }] def _real_extract(self, url): @@ -62,10 +62,10 @@ class PrankCastIE(InfoExtractor): 'uploader': uploader, 'channel_id': str_or_none(json_info.get('user_id')), 'duration': try_call(lambda: parse_iso8601(json_info['end_date']) - start_date), - 'cast': list(filter(None, [uploader] + traverse_obj(guests_json, (..., 'name')))), + 'cast': list(filter(None, [uploader, *traverse_obj(guests_json, (..., 'name'))])), 'description': json_info.get('broadcast_description'), 'categories': [json_info.get('broadcast_category')], - 'tags': try_call(lambda: json_info['broadcast_tags'].split(',')) + 'tags': try_call(lambda: json_info['broadcast_tags'].split(',')), } @@ -85,8 +85,8 @@ class PrankCastPostIE(InfoExtractor): 'cast': ['Devonanustart'], 'description': '', 'categories': ['prank call'], - 'upload_date': '20240104' - } + 'upload_date': '20240104', + }, }, { 'url': 'https://prankcast.com/despicabledogs/posts/6217-jake-the-work-crow-', 'info_dict': { @@ -101,8 +101,8 @@ class PrankCastPostIE(InfoExtractor): 'cast': ['despicabledogs'], 'description': 'https://imgur.com/a/vtxLvKU', 'categories': [], - 'upload_date': '20240104' - } + 'upload_date': '20240104', + }, }] def _real_extract(self, url): @@ -124,7 +124,7 @@ class PrankCastPostIE(InfoExtractor): 'uploader': uploader, 'channel_id': str_or_none(post.get('user_id')), 'duration': float_or_none(content.get('duration')), - 'cast': list(filter(None, [uploader] + traverse_obj(guests_json, (..., 'name')))), + 'cast': list(filter(None, [uploader, *traverse_obj(guests_json, (..., 'name'))])), 'description': post.get('post_body'), 'categories': list(filter(None, [content.get('category')])), 'tags': try_call(lambda: list(filter('', post['post_tags'].split(',')))), @@ -133,5 +133,5 @@ class PrankCastPostIE(InfoExtractor): 'url': f'https://prankcast.com/api/private/chat/select-broadcast?id={post["content_id"]}&cache=', 'ext': 'json', }], - } if post.get('content_id') else None + } if post.get('content_id') else None, } |