merge #6613: [itaku] add 'search' extractor

This commit is contained in:
Mike Fährmann
2024-12-11 11:54:33 +01:00
3 changed files with 71 additions and 1 deletions

View File

@@ -78,4 +78,28 @@ __tests__ = (
"#urls" : "https://itaku.ee/api/media/gallery_vids/sleepy_af_OY5GHWw.mp4",
},
{
"#url" : "https://itaku.ee/home/images?tags=cute",
"#comment" : "simple search",
"#category": ("", "itaku", "search"),
"#class" : itaku.ItakuSearchExtractor,
"#range" : "1-10",
"#count" : 10,
},
{
"#url" : "https://itaku.ee/home/images?maturity_rating=SFW&date_range=&ordering=-date_added&text=hello&is_video=true",
"#comment" : "search for videos",
"#category": ("", "itaku", "search"),
"#class" : itaku.ItakuSearchExtractor,
"#count" : range(5, 50),
},
{
"#url" : "https://itaku.ee/home/images?tags=%2Bcute&tags=-cute&tags=~cute&maturity_rating=SFW&date_range=&ordering=-date_added",
"#comment" : "search with postive, negative, and optional tags",
"#category": ("", "itaku", "search"),
"#class" : itaku.ItakuSearchExtractor,
"#count" : 0,
},
)