aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/redgifs.py
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2025-03-25 01:05:02 +0100
committerGitHub <noreply@github.com>2025-03-25 00:05:02 +0000
commit9dde546e7ee3e1515d88ee3af08b099351455dc0 (patch)
tree873f7e88debd7f8601164c765e1084cfd0840c27 /yt_dlp/extractor/redgifs.py
parent66e0bab814e4a52ef3e12d81123ad992a29df50e (diff)
[cleanup] Misc (#12694)
Authored by: seproDev
Diffstat (limited to 'yt_dlp/extractor/redgifs.py')
-rw-r--r--yt_dlp/extractor/redgifs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/redgifs.py b/yt_dlp/extractor/redgifs.py
index 870e33253..cd3cd323e 100644
--- a/yt_dlp/extractor/redgifs.py
+++ b/yt_dlp/extractor/redgifs.py
@@ -12,7 +12,7 @@ from ..utils import (
)
-class RedGifsBaseInfoExtractor(InfoExtractor):
+class RedGifsBaseIE(InfoExtractor):
_FORMATS = {
'gif': 250,
'sd': 480,
@@ -113,7 +113,7 @@ class RedGifsBaseInfoExtractor(InfoExtractor):
return page_fetcher(page) if page else OnDemandPagedList(page_fetcher, self._PAGE_SIZE)
-class RedGifsIE(RedGifsBaseInfoExtractor):
+class RedGifsIE(RedGifsBaseIE):
_VALID_URL = r'https?://(?:(?:www\.)?redgifs\.com/(?:watch|ifr)/|thumbs2\.redgifs\.com/)(?P<id>[^-/?#\.]+)'
_TESTS = [{
'url': 'https://www.redgifs.com/watch/squeakyhelplesswisent',
@@ -172,7 +172,7 @@ class RedGifsIE(RedGifsBaseInfoExtractor):
return self._parse_gif_data(video_info['gif'])
-class RedGifsSearchIE(RedGifsBaseInfoExtractor):
+class RedGifsSearchIE(RedGifsBaseIE):
IE_DESC = 'Redgifs search'
_VALID_URL = r'https?://(?:www\.)?redgifs\.com/browse\?(?P<query>[^#]+)'
_PAGE_SIZE = 80
@@ -226,7 +226,7 @@ class RedGifsSearchIE(RedGifsBaseInfoExtractor):
entries, query_str, tags, f'RedGifs search for {tags}, ordered by {order}')
-class RedGifsUserIE(RedGifsBaseInfoExtractor):
+class RedGifsUserIE(RedGifsBaseIE):
IE_DESC = 'Redgifs user'
_VALID_URL = r'https?://(?:www\.)?redgifs\.com/users/(?P<username>[^/?#]+)(?:\?(?P<query>[^#]+))?'
_PAGE_SIZE = 80