+# library to autodownload flash videos
+#
+# (c) 2007-2008 by Ralf Ertzinger <ralf@camperquake.de>
+# licensed under GNU GPL v2
+#
+# Based on youtube.pl by Christian Garbs <mitch@cgarbs.de>
+# which in turn is
+# based on trigger.pl by Wouter Coekaerts <wouter@coekaerts.be>
+
package libvideosite;
require Exporter;
'_immutable' => '1',
'schemas' => {},
}
- }
+ },
+ 'config-version' => '2',
};
#
my @text = @_;
my $format;
+ @text = ('') unless(@text);
+
# This will define the outputprefix once, so we don't have
# do do this every time.
- $outputprefix //= sprintf("%svideosite: %s",
+ $outputprefix = sprintf("%svideosite: %s",
$remote_api->{color}->('magenta'),
- $remote_api->{color}->());
+ $remote_api->{color}->()) unless(defined($outputprefix));
$format = $outputprefix . shift(@text);
#