[redgifs:search] support '/search?query=...' URLs (#7118)

This commit is contained in:
Mike Fährmann
2025-03-07 12:35:35 +01:00
parent 8582af3483
commit 18b9ffe8c3
2 changed files with 38 additions and 17 deletions

View File

@@ -93,6 +93,20 @@ __tests__ = (
"#count" : 10,
},
{
"#url" : "https://www.redgifs.com/search/gifs?query=jav+model&order=top",
"#category": ("", "redgifs", "search"),
"#class" : redgifs.RedgifsSearchExtractor,
"#pattern" : r"https://\w+\.redgifs\.com/[A-Za-z-]+\.(mp4|jpg)",
"#range" : "1-10",
"#count" : 10,
},
{
"#url" : "https://www.redgifs.com/search?query=Skinny+Lesbian",
"#class" : redgifs.RedgifsSearchExtractor,
},
{
"#url" : "https://www.redgifs.com/browse?tags=JAV",
"#category": ("", "redgifs", "search"),