summaryrefslogtreecommitdiff
path: root/lib/Multi/DLsite.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Multi/DLsite.pm')
-rw-r--r--lib/Multi/DLsite.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Multi/DLsite.pm b/lib/Multi/DLsite.pm
index 8c0871bd..a329d2b7 100644
--- a/lib/Multi/DLsite.pm
+++ b/lib/Multi/DLsite.pm
@@ -6,6 +6,7 @@ use utf8;
use Encode 'decode_utf8';
use Multi::Core;
use AnyEvent::HTTP;
+use VNDB::Config;
my %C = (
@@ -17,7 +18,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 {