git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2fa89b8
)
videosite-dl: Convert to built in config functions
author
Ralf Ertzinger
<ralf@skytale.net>
Wed, 8 May 2013 17:58:00 +0000
(19:58 +0200)
committer
Ralf Ertzinger
<ralf@skytale.net>
Wed, 8 May 2013 17:58:47 +0000
(19:58 +0200)
videosite-dl.pl
patch
|
blob
|
history
diff --git
a/videosite-dl.pl
b/videosite-dl.pl
index
594b020
..
46c8b49
100755
(executable)
--- a/
videosite-dl.pl
+++ b/
videosite-dl.pl
@@
-40,13
+40,8
@@
push(@INC, dirname(realpath($0)));
load 'libvideosite';
unless(libvideosite::register_api({
load 'libvideosite';
unless(libvideosite::register_api({
- config_init => sub {},
- config_save => sub {},
- config_get => sub { return $config{join(".", @{$_[0]})} },
- config_set => sub { $config{join(".", @{$_[0]})} = $_[1] },
- config_has => sub { exists($config{join(".", @{$_[0]})}) },
- config_del => sub { delete($config{join(".", @{$_[0]})}) },
link_callback => \&link_callback,
link_callback => \&link_callback,
+ _config_default => sub { return \%config },
_debug => sub { return $debug },
})) {
die("Error registering API: $libvideosite::error");
_debug => sub { return $debug },
})) {
die("Error registering API: $libvideosite::error");