##################################################
-my $use_libnotify = 1;
-my $use_libpurple;
my $format = '$artist - $title';
GetOptions (
- "libnotify!" => \$use_libnotify,
- "libpurple!" => \$use_libpurple,
"format=s" => \$format,
);
my $str=$format;
$str =~ s/\$$_/$metadata{$_}/g for keys %metadata;
- notify_libnotify $str if $use_libnotify;
- # notify_libpurple $str if $use_libpurple;
+ notify_libnotify $str
}
sub on_playback_current_id {
-#!/usr/bin/perl -w
+#!/usr/bin/perl
use v5.14;
+use warnings;
-use Test::More tests => 3;
+use Test::More tests => 2;
BEGIN { use_ok('App::XMMS2::Notifier') };
#########################
can_ok('App::XMMS2::Notifier', qw/run notify_libnotify/);
-
-TODO: {
- local $TODO = 'libpurple notify not written yet';
- can_ok('App::XMMS2::Notifier', 'notify_libpurple');
-}