[extractor/Prankcast] Fix tags (#6316)

Authored by: columndeeply
This commit is contained in:
columndeeply 2023-03-04 17:52:15 +00:00 committed by GitHub
parent cf60522652
commit ed4cc4ea79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 @@ class PrankCastIE(InfoExtractor):
'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(','))
}