mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 14:37:21 +00:00
Use all
helpers but with more filter
This commit is contained in:
parent
9738f0f855
commit
3fe9657fc3
|
@ -104,7 +104,7 @@ def _real_extract(self, url):
|
||||||
'description': ('body', {clean_html}),
|
'description': ('body', {clean_html}),
|
||||||
'thumbnail': (('large_thumbnail', 'thumbnail'), {url_or_none}, any),
|
'thumbnail': (('large_thumbnail', 'thumbnail'), {url_or_none}, any),
|
||||||
'duration': ('runTime', {parse_duration}),
|
'duration': ('runTime', {parse_duration}),
|
||||||
'categories': ('taxonomy', 'name', {str}, all),
|
'categories': ('taxonomy', 'name', {str}, all, filter),
|
||||||
'tags': ('topics', ..., 'name', {str}),
|
'tags': ('topics', ..., 'name', {str}),
|
||||||
'modified_date': ('lastUpdated', {unified_strdate}),
|
'modified_date': ('lastUpdated', {unified_strdate}),
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -57,6 +57,6 @@ def _real_extract(self, url):
|
||||||
'duration': ('runtimeInSeconds', {int_or_none}),
|
'duration': ('runtimeInSeconds', {int_or_none}),
|
||||||
'location': ('countriesOfProduction', {list}, {lambda x: join_nonempty(*x, delim=', ')}),
|
'location': ('countriesOfProduction', {list}, {lambda x: join_nonempty(*x, delim=', ')}),
|
||||||
'release_year': ('yearOfProduction', {int_or_none}),
|
'release_year': ('yearOfProduction', {int_or_none}),
|
||||||
'categories': ('mainGenre', {str}, all),
|
'categories': ('mainGenre', {str}, all, filter),
|
||||||
})),
|
})),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue