summaryrefslogtreecommitdiff
path: root/lib/Multi/Wikidata.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Multi/Wikidata.pm')
-rw-r--r--lib/Multi/Wikidata.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Multi/Wikidata.pm b/lib/Multi/Wikidata.pm
index b74c3bc2..a4abf5bb 100644
--- a/lib/Multi/Wikidata.pm
+++ b/lib/Multi/Wikidata.pm
@@ -10,6 +10,7 @@ use warnings;
use Multi::Core;
use JSON::XS 'decode_json';
use AnyEvent::HTTP;
+use VNDB::Config;
my %C = (
@@ -22,7 +23,7 @@ my %C = (
sub run {
shift;
- $C{ua} = "VNDB.org Crawler (Multi v$VNDB::S{version}; contact\@vndb.org)";
+ $C{ua} = sprintf 'VNDB.org Crawler (Multi v%s; contact@vndb.org)', config->{version};
%C = (%C, @_);
push_watcher schedule 0, $C{check_timeout}, \&fetch;