summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-07-19 14:19:23 +0200
committerYorhel <git@yorhel.nl>2009-07-19 14:19:23 +0200
commitf5e5f2ce1fd955793420fd62d663d54983e7facc (patch)
tree3f03d439810a1fed7073a939c029a7e4a14aacec /lib
parent678a78d71534441d5471ed24aa8b471ba08c6664 (diff)
Notify Multi::Image via PostgreSQL for new screenshots
This finished the rewrite of Multi::Image and everything surrounding it.
Diffstat (limited to 'lib')
-rw-r--r--lib/Multi/Image.pm4
-rw-r--r--lib/VNDB/Handler/VNEdit.pm1
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/Multi/Image.pm b/lib/Multi/Image.pm
index a1e30f37..a9ed4b9e 100644
--- a/lib/Multi/Image.pm
+++ b/lib/Multi/Image.pm
@@ -36,14 +36,14 @@ sub spawn {
sub _start {
$_[KERNEL]->alias_set('image');
$_[KERNEL]->sig(shutdown => 'shutdown');
- $_[KERNEL]->post(pg => listen => coverimage => 'cv_check');
+ $_[KERNEL]->post(pg => listen => coverimage => 'cv_check', screenshot => 'scr_check');
$_[KERNEL]->yield('cv_check');
$_[KERNEL]->yield('scr_check');
}
sub shutdown {
- $_[KERNEL]->post(pg => unlisten => 'coverimage');
+ $_[KERNEL]->post(pg => unlisten => 'coverimage', 'screenshot');
$_[KERNEL]->delay('cv_check');
$_[KERNEL]->delay('scr_check');
}
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index 9fb276a6..959e5342 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -369,7 +369,6 @@ sub scrxml {
my $new = sprintf '%s/static/sf/%02d/%d.jpg', $VNDB::ROOT, $id%100, $id;
rename $tmp, $new or die $!;
chmod 0666, $new;
- $self->multiCmd('screenshot');
}
xml;