diff options
author | invertico <8355966+invertico@users.noreply.github.com> | 2025-01-26 03:40:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-26 02:40:05 +0000 |
commit | 4850ce91d163579fa615c3c0d44c9bd64682c22b (patch) | |
tree | 09440c95fed09651eee49b9026f8fadb85bde68b | |
parent | e2e73b5c65593ec0a5e685663e6ec0f4aaffc1f1 (diff) |
[ie/redgifs] Support `/ifr/` URLs (#11805)
Authored by: invertico
-rw-r--r-- | yt_dlp/extractor/redgifs.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/yt_dlp/extractor/redgifs.py b/yt_dlp/extractor/redgifs.py index b11ea273d..870e33253 100644 --- a/yt_dlp/extractor/redgifs.py +++ b/yt_dlp/extractor/redgifs.py @@ -114,7 +114,7 @@ class RedGifsBaseInfoExtractor(InfoExtractor): class RedGifsIE(RedGifsBaseInfoExtractor): - _VALID_URL = r'https?://(?:(?:www\.)?redgifs\.com/watch/|thumbs2\.redgifs\.com/)(?P<id>[^-/?#\.]+)' + _VALID_URL = r'https?://(?:(?:www\.)?redgifs\.com/(?:watch|ifr)/|thumbs2\.redgifs\.com/)(?P<id>[^-/?#\.]+)' _TESTS = [{ 'url': 'https://www.redgifs.com/watch/squeakyhelplesswisent', 'info_dict': { @@ -147,6 +147,22 @@ class RedGifsIE(RedGifsBaseInfoExtractor): 'age_limit': 18, 'tags': list, }, + }, { + 'url': 'https://www.redgifs.com/ifr/squeakyhelplesswisent', + 'info_dict': { + 'id': 'squeakyhelplesswisent', + 'ext': 'mp4', + 'title': 'Hotwife Legs Thick', + 'timestamp': 1636287915, + 'upload_date': '20211107', + 'uploader': 'ignored52', + 'duration': 16, + 'view_count': int, + 'like_count': int, + 'categories': list, + 'age_limit': 18, + 'tags': list, + }, }] def _real_extract(self, url): |