Use all helper

This commit is contained in:
sepro 2024-10-27 22:31:30 +01:00
parent b145ac9a6f
commit 9738f0f855
2 changed files with 2 additions and 2 deletions

View file

@ -104,7 +104,7 @@ def _real_extract(self, url):
'description': ('body', {clean_html}),
'thumbnail': (('large_thumbnail', 'thumbnail'), {url_or_none}, any),
'duration': ('runTime', {parse_duration}),
'categories': ('taxonomy', 'name', {str}, {lambda x: x and [x]}),
'categories': ('taxonomy', 'name', {str}, all),
'tags': ('topics', ..., 'name', {str}),
'modified_date': ('lastUpdated', {unified_strdate}),
}),

View file

@ -57,6 +57,6 @@ def _real_extract(self, url):
'duration': ('runtimeInSeconds', {int_or_none}),
'location': ('countriesOfProduction', {list}, {lambda x: join_nonempty(*x, delim=', ')}),
'release_year': ('yearOfProduction', {int_or_none}),
'categories': ('mainGenre', {str}, {lambda x: x and [x]}),
'categories': ('mainGenre', {str}, all),
})),
}