[itaku] add 'search' extractor

This commit is contained in:
Shelvacu
2024-12-05 21:09:38 -08:00
committed by Shelvacu on fw
parent 34e157e166
commit b90c77d8f1
2 changed files with 73 additions and 0 deletions

View File

@@ -78,4 +78,27 @@ __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,
"#count" : "> 1",
},
{
"#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" : 30,
},
{
"#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
},
)