[extractor/Prankcast] Fix tags (#6316)

Authored by: columndeeply
pull/6427/head
columndeeply 2 years ago committed by GitHub
parent cf60522652
commit ed4cc4ea79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,7 +18,7 @@ class PrankCastIE(InfoExtractor):
'cast': ['Devonanustart', 'Phonelosers'], 'cast': ['Devonanustart', 'Phonelosers'],
'description': '', 'description': '',
'categories': ['prank'], 'categories': ['prank'],
'tags': ['prank call', 'prank'], 'tags': ['prank call', 'prank', 'live show'],
'upload_date': '20220825' 'upload_date': '20220825'
} }
}, { }, {
@ -35,7 +35,7 @@ class PrankCastIE(InfoExtractor):
'cast': ['phonelosers'], 'cast': ['phonelosers'],
'description': '', 'description': '',
'categories': ['prank'], 'categories': ['prank'],
'tags': ['prank call', 'prank'], 'tags': ['prank call', 'prank', 'live show'],
'upload_date': '20221006' 'upload_date': '20221006'
} }
}] }]
@ -62,5 +62,5 @@ class PrankCastIE(InfoExtractor):
'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'), 'description': json_info.get('broadcast_description'),
'categories': [json_info.get('broadcast_category')], '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(','))
} }

Loading…
Cancel
Save