summaryrefslogtreecommitdiff
path: root/lib/Multi/Anime.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2008-11-20 13:25:54 +0100
committerYorhel <git@yorhel.nl>2008-11-20 13:25:54 +0100
commit985d0633b1d7ad61bb2eaea877e204ee81c3c3ee (patch)
tree6f624750f8cfa07947e679de09df5cefbe28b95a /lib/Multi/Anime.pm
parent29a9cd8509d27a06785f7c6e34e7515385efab7b (diff)
Related anime on VN pages
Diffstat (limited to 'lib/Multi/Anime.pm')
-rw-r--r--lib/Multi/Anime.pm15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/Multi/Anime.pm b/lib/Multi/Anime.pm
index 0a7f5a08..1215a4a1 100644
--- a/lib/Multi/Anime.pm
+++ b/lib/Multi/Anime.pm
@@ -66,17 +66,6 @@ sub spawn {
timeoutdelay => 0.4, # $delay = $msgdelay ^ (1 + $tm*$timeoutdelay)
maxtimeoutdelay => 2*3600, # two hours
cachetime => 30*24*3600, # one month
- # AniDB anime types:
- types => [
- [ 'unknown', 'unknown', ],
- [ 'TV', 'TV Series' ],
- [ 'OVA', 'OVA' ],
- [ 'Movie', 'Movie' ],
- [ 'unknown', 'Other' ],
- [ 'unknown', 'Web' ],
- [ 'TV Special', 'TV Special' ],
- [ 'unknown', 'Music Video' ],
- ],
@_,
w => undef,
@@ -273,8 +262,8 @@ sub updateanime { # aid, data|'notfound'
$_ =~ s/`/'/g;
}
$col[3] = $1 if $col[3] =~ /^([0-9]+)/; # remove multi-year stuff
- for(0..$#{$_[HEAP]{types}}) {
- $col[4] = $_ if lc($_[HEAP]{types}[$_][1]) eq lc($col[4]);
+ for(0..$#{$VNDB::S{anime_types}}) {
+ $col[4] = $_ if lc($VNDB::S{anime_types}[$_][1]) eq lc($col[4]);
}
$col[4] = 0 if $col[4] !~ /^[0-9]+$/;
$col[2] = '' if $col[2] =~ /^0,/;