aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/laracasts.py
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2024-11-04 01:33:21 +0100
committerGitHub <noreply@github.com>2024-11-04 01:33:21 +0100
commit197d0b03b6a3c8fe4fa5ace630eeffec629bf72c (patch)
tree577bda6784f8c1dbd9bcdf5e3a524a3c3c650f75 /yt_dlp/extractor/laracasts.py
parentb03267bf0675eeb8df5baf1daac7cf67840c91a5 (diff)
[cleanup] Misc (#11347)
Closes #11361 Authored by: avagordon01, bashonly, grqz, Grub4K, seproDev Co-authored-by: Ava Gordon <avagordon01@gmail.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com> Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'yt_dlp/extractor/laracasts.py')
-rw-r--r--yt_dlp/extractor/laracasts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/laracasts.py b/yt_dlp/extractor/laracasts.py
index 4494c4b79..4a61d6ab1 100644
--- a/yt_dlp/extractor/laracasts.py
+++ b/yt_dlp/extractor/laracasts.py
@@ -32,7 +32,7 @@ class LaracastsBaseIE(InfoExtractor):
VimeoIE, url_transparent=True,
**traverse_obj(episode, {
'id': ('id', {int}, {str_or_none}),
- 'webpage_url': ('path', {lambda x: urljoin('https://laracasts.com', x)}),
+ 'webpage_url': ('path', {urljoin('https://laracasts.com')}),
'title': ('title', {clean_html}),
'season_number': ('chapter', {int_or_none}),
'episode_number': ('position', {int_or_none}),
@@ -104,7 +104,7 @@ class LaracastsPlaylistIE(LaracastsBaseIE):
'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, filter),
'tags': ('topics', ..., 'name', {str}),
'modified_date': ('lastUpdated', {unified_strdate}),
}),