[Chii] !randomanime <rating> [TRACKED]

old granted and denied feature requests

Moderator: AniDB

Locked
wahaha
AniDB Staff
Posts: 1497
Joined: Sun Nov 17, 2002 3:33 pm

[Chii] !randomanime <rating> [TRACKED]

Post by wahaha »

Code: Select all

<StopD> ahh it should be possible to get a random anime in a range of votes...
<StopD> like !randomanime 4 10
Sounds like a useful feature, although another possible approach would be something like "!randomanime top100" or "top50"...

Well, this is anyway something for the "probably never"-list, just wanted to have it posted for completeness' sake ^^;
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

How about giving the command an expression-like parameter syntax instead?

!randomanime rating>6
!randomanime unwatched and rating>8
!randomanime watched and rating<5

Altho parsing that would probably quite a pita... ;)
wahaha
AniDB Staff
Posts: 1497
Joined: Sun Nov 17, 2002 3:33 pm

Post by wahaha »

"Syntax error in !randomanime. Format: !randomanime all|[un]watched|db [minvote](-[maxvote]) [eps <|=|> x] [year <|=|> y]..."
One could go up to (and beyond) the functionality of the website's "advanced search" :roll:
Elberet wrote:How about giving the command an expression-like parameter syntax instead?
[...]
Altho parsing that would probably quite a pita... ;)
That was actually one of the motivations for my alternate suggestion:
Making the parameter "topX" does also discourage further requests for more complex filters, while "!randomanime x-y" almost calls for such. ^^;
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

I think I'll add a randomizer to AOM advanced search. :D
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

wahaha wrote:That was actually one of the motivations for my alternate suggestion:
Making the parameter "topX" does also discourage further requests for more complex filters, while "!randomanime x-y" almost calls for such. ^^;
Well, it's true that programmers are lazy, but then again, the ultimate form of laziness is to spend ridiculous amounts of time writing a piece of code that can solve all problems one could run into with minimum modifications. ;) This problem here really *screams* for such a solution...

How about replacing the !randomanime command with a generic !query command that accepts an SQL-like query statement as a parameter? :mrgreen:

usage : !randomanime [(queryspec)[, (queryspec)[, (queryspec)]...]]
queryspec := fieldspec operator matchvalue
fieldspec := {"watched", "mylist", "rating", "year", "eps", "type", ...}
operator := {"<", ">", "="}
matchvalue := {number, SQL-style regexp, "true", "false", "tv", "ova", "movie"}

For example:
!randomanime type=ova, eps>3, eps<10, watched=false, rating>7, year>1998
!randomanime title="%Tenchi%", rating > 6

Even the Perl code that turns such a very strictly formulated query into SQL would be quite simple and easy to maintain, too...

Btw, please don't take this too serious. I'm in rambling mode again and just posting random ideas that are flying through my head. :P
wahaha
AniDB Staff
Posts: 1497
Joined: Sun Nov 17, 2002 3:33 pm

Post by wahaha »

PetriW wrote:I think I'll add a randomizer to AOM advanced search. :D
"Play random next ep of any anime I didn't yet vote on" - that'd be ultimate lazyness ^^;
Elberet wrote:How about replacing the !randomanime command with a generic !query command that accepts an SQL-like query statement as a parameter? :mrgreen:
I want "!coffee" first :P
Elberet wrote:Btw, please don't take this too serious.
*Done* ^^
Somehow I think that someone has to fulfill this request first: http://www.anidb.net/forum/viewtopic.php?t=6 ;)
PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

Did I forget anything? (myvotes/myreviews, notification and wishlist not supported by api fyi)
Image
Locked