From 3fe9657fc3462cdee1665b89a2f5f12d39fd1c51 Mon Sep 17 00:00:00 2001 From: sepro Date: Sun, 27 Oct 2024 22:45:31 +0100 Subject: [PATCH] Use `all` helpers but with more `filter` --- yt_dlp/extractor/laracasts.py | 2 +- yt_dlp/extractor/magentamusik.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/laracasts.py b/yt_dlp/extractor/laracasts.py index eef9fec987..7b096c2b00 100644 --- a/yt_dlp/extractor/laracasts.py +++ b/yt_dlp/extractor/laracasts.py @@ -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}, all), + 'categories': ('taxonomy', 'name', {str}, all, filter), 'tags': ('topics', ..., 'name', {str}), 'modified_date': ('lastUpdated', {unified_strdate}), }), diff --git a/yt_dlp/extractor/magentamusik.py b/yt_dlp/extractor/magentamusik.py index 7056980011..24c46a1529 100644 --- a/yt_dlp/extractor/magentamusik.py +++ b/yt_dlp/extractor/magentamusik.py @@ -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}, all), + 'categories': ('mainGenre', {str}, all, filter), })), }