[PERL] Chii module programming - DISCUSSION
Moderator: AniDB
[PERL] Chii module programming - DISCUSSION
Thread for all discussion about Chii module programming.
Thanks for the files, I imported it to http://cvs.baka-sama.de/cvsweb.cgi/chii-bot/ - everyone who wants to help & needs write access to the repository, drop me a line.
The following files seems to be missing. They might be unimportant; I just grepped for require/use lines:
The following files seems to be missing. They might be unimportant; I just grepped for require/use lines:
Code: Select all
adb_db.pm
adb_file_symbols.pm
adb_misc.pm
adb_voten.pm
adbs_all_mini.pm
anfo.pm
I've been renovating Chii's randomanime function to a more decent state and found myself presented with a choice... however, it's not really my choice, so I need a decision or two here:
"!randomanime watched", "unwatched" and "all" currently return a random episode (list entry actually) and information on the anime it's attached to. This effectively assigns probabilities to anime based on how many files you have for that anime in your list (which meet the condition given), a behaviour that I felt was clearly wrong. I've changed the selection code to be a good deal simpler (hopefully a little faster too) and assign equal probabilities to anime, but my method leaves some choices regarding the episode selection:
"!randomanime watched", "unwatched" and "all" currently return a random episode (list entry actually) and information on the anime it's attached to. This effectively assigns probabilities to anime based on how many files you have for that anime in your list (which meet the condition given), a behaviour that I felt was clearly wrong. I've changed the selection code to be a good deal simpler (hopefully a little faster too) and assign equal probabilities to anime, but my method leaves some choices regarding the episode selection:
- Should "!randomanime all":
- show no particular episode for the chosen anime
- (my preference) show a random episode from your list for the chosen anime
- show the first episode for the chosen anime
- Should "!randomanime watched":
- show no particular episode for the chosen anime
- show a random qualifying episode from your list for the chosen anime
- show the first episode for the chosen anime
- (my preference... probably) show the last qualifying (last (numerically) watched) episode from your list for the chosen anime
- Should "!randomanime unwatched":
- show no particular episode for the chosen anime
- show a random qualifying episode from your list for the chosen anime
- show the first episode for the chosen anime
- (my strong preference) show the first qualifying episode from your list for the chosen anime (next episode to watch)
I'm of the Ronseal frame of mind myself, !randomanime should return just anime, not episodes. So, 1a, 2a, and 3a though 3d wouldn't hurt.
Rar
Rar