aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Humphrey <jackson.s.humphrey@gmail.com>2024-11-16 13:50:17 -0600
committerGitHub <noreply@github.com>2024-11-16 19:50:17 +0000
commitd215fba7edb69d4fa665f43663756fd260b1489f (patch)
tree73f0014c6fa284f8bb21041388c708f0929f01cf
parent8388ec256f7753b02488788e3cfa771f6e1db247 (diff)
[ie/RedGifsUser] Fix extraction (#11531)
Closes #7382, Closes #9131 Authored by: jshumphrey
-rw-r--r--yt_dlp/extractor/redgifs.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/yt_dlp/extractor/redgifs.py b/yt_dlp/extractor/redgifs.py
index 50138ab12..b11ea273d 100644
--- a/yt_dlp/extractor/redgifs.py
+++ b/yt_dlp/extractor/redgifs.py
@@ -213,7 +213,7 @@ class RedGifsSearchIE(RedGifsBaseInfoExtractor):
class RedGifsUserIE(RedGifsBaseInfoExtractor):
IE_DESC = 'Redgifs user'
_VALID_URL = r'https?://(?:www\.)?redgifs\.com/users/(?P<username>[^/?#]+)(?:\?(?P<query>[^#]+))?'
- _PAGE_SIZE = 30
+ _PAGE_SIZE = 80
_TESTS = [
{
'url': 'https://www.redgifs.com/users/lamsinka89',
@@ -222,7 +222,7 @@ class RedGifsUserIE(RedGifsBaseInfoExtractor):
'title': 'lamsinka89',
'description': 'RedGifs user lamsinka89, ordered by recent',
},
- 'playlist_mincount': 100,
+ 'playlist_mincount': 391,
},
{
'url': 'https://www.redgifs.com/users/lamsinka89?page=3',
@@ -231,7 +231,7 @@ class RedGifsUserIE(RedGifsBaseInfoExtractor):
'title': 'lamsinka89',
'description': 'RedGifs user lamsinka89, ordered by recent',
},
- 'playlist_count': 30,
+ 'playlist_count': 80,
},
{
'url': 'https://www.redgifs.com/users/lamsinka89?order=best&type=g',
@@ -240,7 +240,17 @@ class RedGifsUserIE(RedGifsBaseInfoExtractor):
'title': 'lamsinka89',
'description': 'RedGifs user lamsinka89, ordered by best',
},
- 'playlist_mincount': 100,
+ 'playlist_mincount': 391,
+ },
+ {
+ 'url': 'https://www.redgifs.com/users/ignored52',
+ 'note': 'https://github.com/yt-dlp/yt-dlp/issues/7382',
+ 'info_dict': {
+ 'id': 'ignored52',
+ 'title': 'ignored52',
+ 'description': 'RedGifs user ignored52, ordered by recent',
+ },
+ 'playlist_mincount': 121,
},
]