X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=libvideosite.pm;h=8791c649db8c5de30fe2e5b23020bd2707d4a549;hb=a795367c342cad54115ac809d52fdd5980c85860;hp=426b0d227db3859f6ed72d416deaa57217a448d4;hpb=9257f7504905acaae56297cf7f1a479853e68fe7;p=videosite.git diff --git a/libvideosite.pm b/libvideosite.pm index 426b0d2..8791c64 100644 --- a/libvideosite.pm +++ b/libvideosite.pm @@ -65,7 +65,7 @@ my $remote_api = { color => sub { return '' }, module_path => sub { return dirname(realpath($0)) }, quote => sub { return $_ }, - reset => sub {}, + reload => sub {}, }; # @@ -101,7 +101,7 @@ my $videosite_commands = { }, 'reload' => sub { - init(); + $remote_api->{reload}->(); }, 'mode' => sub { @@ -523,7 +523,11 @@ sub _expand_url_shortener { # Save the config to durable storage # sub _cmd_save { - $remote_api->{config_save}->(); + if ($remote_api->{config_save}->()) { + _io("Config saved"); + } else { + _io(sprintf("%sConfig save failed%s", _colorpair("*red"), _colorpair())); + } } #