summaryrefslogtreecommitdiff
path: root/lib/Multi/MG.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-09-12 17:07:46 +0200
committerYorhel <git@yorhel.nl>2019-09-12 17:54:50 +0200
commitadc906096f4644788b970e5ed936ca3e70bde2e8 (patch)
tree8d2aacf12b008820a5a331e648f915a67987cdfb /lib/Multi/MG.pm
parent752bc1724968a1f15b17ba9e607f2163997b4efa (diff)
Add VNDB::Config module and unified conf.pl config file
This gets rid of global.pl, config.pl and config3.pl and uses the cleaner config3.pl format for the config file. The config is easily accessible from anywhere by importing the new VNDB::Config module; The global $VNDB::S,O,M,ROOT variables have been removed. Sorry for all the churn...
Diffstat (limited to 'lib/Multi/MG.pm')
-rw-r--r--lib/Multi/MG.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Multi/MG.pm b/lib/Multi/MG.pm
index 44a641ed..81659153 100644
--- a/lib/Multi/MG.pm
+++ b/lib/Multi/MG.pm
@@ -4,6 +4,7 @@ use strict;
use warnings;
use Multi::Core;
use AnyEvent::HTTP;
+use VNDB::Config;
my %C = (
@@ -16,7 +17,7 @@ my %C = (
sub run {
shift;
- $C{ua} = "VNDB.org Affiliate Crawler (Multi v$VNDB::S{version}; contact\@vndb.org)";
+ $C{ua} = sprintf 'VNDB.org Affiliate Crawler (Multi v%s; contact@vndb.org)', config->{version};
%C = (%C, @_);
push_watcher schedule 0, $C{clean_timeout}, sub {