summaryrefslogtreecommitdiff
path: root/lib/Multi
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-10-25 12:30:52 +0100
committerYorhel <git@yorhel.nl>2015-10-25 12:30:52 +0100
commite3b9348aaff9cfc059638b1a9cb6f7ec41e2c1f6 (patch)
tree52ad3b01dcefacce77846fe13c89549dc8b183ac /lib/Multi
parent79fc4de7c8f55ce9ca25251357d6002dd1baea0b (diff)
Multi::Anime: Avoid dead state when trying to fetch anime info
Turns out the anime data hasn't been updated in a few months. Oops.
Diffstat (limited to 'lib/Multi')
-rw-r--r--lib/Multi/Anime.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Multi/Anime.pm b/lib/Multi/Anime.pm
index a17eead6..89f74a9e 100644
--- a/lib/Multi/Anime.pm
+++ b/lib/Multi/Anime.pm
@@ -98,10 +98,10 @@ sub unload {
sub check_anime {
- return if $C{aid};
+ return if $C{aid} || $C{tw};
pg_cmd 'SELECT id FROM anime WHERE lastfetch IS NULL OR lastfetch < NOW() - $1::interval ORDER BY lastfetch DESC NULLS FIRST LIMIT 1', [ $O{cachetime} ], sub {
my $res = shift;
- return if pg_expect $res, 1 or $C{aid} or !$res->rows;
+ return if pg_expect $res, 1 or $C{aid} or $C{tw} or !$res->rows;
$C{aid} = $res->value(0,0);
nextcmd();
};