return formats
def _extract_performers(self, prog):
- performers = traverse_obj(prog, (
- 'pfm/text()', ..., {lambda x: re.split(r'[//、 ,,]', x)}, ..., {str.strip}))
- # TODO: change 'artist' fields to 'artists' and return traversal list instead of str
- return ', '.join(performers) or None
+ return traverse_obj(prog, (
+ 'pfm/text()', ..., {lambda x: re.split(r'[//、 ,,]', x)}, ..., {str.strip})) or None
class RadikoIE(RadikoBaseIE):
return {
'id': video_id,
'title': try_call(lambda: prog.find('title').text),
- 'artist': self._extract_performers(prog),
+ 'cast': self._extract_performers(prog),
'description': clean_html(try_call(lambda: prog.find('info').text)),
'uploader': try_call(lambda: station_program.find('.//name').text),
'uploader_id': station,
return {
'id': station,
'title': title,
- 'artist': self._extract_performers(prog),
+ 'cast': self._extract_performers(prog),
'description': description,
'uploader': station_name,
'uploader_id': station,