diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
commit | 137f07c27a88b07df57df5b2cdebebe3c7722bac (patch) | |
tree | 4ebdcbea6b540f69c40ba0be6ac766008030d149 /yt_dlp/extractor/slutload.py | |
parent | Adding debian version 2024.05.27-1. (diff) | |
download | yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.tar.xz yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.zip |
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/slutload.py')
-rw-r--r-- | yt_dlp/extractor/slutload.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/yt_dlp/extractor/slutload.py b/yt_dlp/extractor/slutload.py index 8e6e89c..c04898b 100644 --- a/yt_dlp/extractor/slutload.py +++ b/yt_dlp/extractor/slutload.py @@ -11,7 +11,7 @@ class SlutloadIE(InfoExtractor): 'ext': 'mp4', 'title': 'virginie baisee en cam', 'age_limit': 18, - 'thumbnail': r're:https?://.*?\.jpg' + 'thumbnail': r're:https?://.*?\.jpg', }, }, { # mobile site @@ -29,14 +29,14 @@ class SlutloadIE(InfoExtractor): video_id = self._match_id(url) embed_page = self._download_webpage( - 'http://www.slutload.com/embed_player/%s' % video_id, video_id, + f'http://www.slutload.com/embed_player/{video_id}', video_id, 'Downloading embed page', fatal=False) if embed_page: def extract(what): return self._html_search_regex( - r'data-video-%s=(["\'])(?P<url>(?:(?!\1).)+)\1' % what, - embed_page, 'video %s' % what, default=None, group='url') + rf'data-video-{what}=(["\'])(?P<url>(?:(?!\1).)+)\1', + embed_page, f'video {what}', default=None, group='url') video_url = extract('url') if video_url: @@ -47,11 +47,11 @@ class SlutloadIE(InfoExtractor): 'url': video_url, 'title': title, 'thumbnail': extract('preview'), - 'age_limit': 18 + 'age_limit': 18, } webpage = self._download_webpage( - 'http://www.slutload.com/video/_/%s/' % video_id, video_id) + f'http://www.slutload.com/video/_/{video_id}/', video_id) title = self._html_search_regex( r'<h1><strong>([^<]+)</strong>', webpage, 'title').strip() info = self._parse_html5_media_entries(url, webpage, video_id)[0] |