diff options
author | Yorhel <git@yorhel.nl> | 2019-09-12 17:07:46 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-09-12 17:54:50 +0200 |
commit | adc906096f4644788b970e5ed936ca3e70bde2e8 (patch) | |
tree | 8d2aacf12b008820a5a331e648f915a67987cdfb /lib/Multi/MG.pm | |
parent | 752bc1724968a1f15b17ba9e607f2163997b4efa (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.pm | 3 |
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 { |