From ed4cc4ea793314c50ae3f82e98248c1de1c25694 Mon Sep 17 00:00:00 2001 From: columndeeply <106948293+columndeeply@users.noreply.github.com> Date: Sat, 4 Mar 2023 17:52:15 +0000 Subject: [PATCH] [extractor/Prankcast] Fix tags (#6316) Authored by: columndeeply --- yt_dlp/extractor/prankcast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/prankcast.py b/yt_dlp/extractor/prankcast.py index 0eb5f98d1..b2ec5bbb8 100644 --- a/yt_dlp/extractor/prankcast.py +++ b/yt_dlp/extractor/prankcast.py @@ -18,7 +18,7 @@ class PrankCastIE(InfoExtractor): 'cast': ['Devonanustart', 'Phonelosers'], 'description': '', 'categories': ['prank'], - 'tags': ['prank call', 'prank'], + 'tags': ['prank call', 'prank', 'live show'], 'upload_date': '20220825' } }, { @@ -35,7 +35,7 @@ class PrankCastIE(InfoExtractor): 'cast': ['phonelosers'], 'description': '', 'categories': ['prank'], - 'tags': ['prank call', 'prank'], + 'tags': ['prank call', 'prank', 'live show'], 'upload_date': '20221006' } }] @@ -62,5 +62,5 @@ def _real_extract(self, url): 'cast': list(filter(None, [uploader] + traverse_obj(guests_json, (..., 'name')))), 'description': json_info.get('broadcast_description'), 'categories': [json_info.get('broadcast_category')], - 'tags': self._parse_json(json_info.get('broadcast_tags') or '{}', video_id) + 'tags': try_call(lambda: json_info['broadcast_tags'].split(',')) }