Changeset b5d15a0 for gutenbach/debian
- Timestamp:
- Feb 26, 2009, 12:38:42 AM (16 years ago)
- Branches:
- master, debian, mac, no-cups, nodebathena, web
- Children:
- f014bc4
- Parents:
- 3a900ef
- git-author:
- Edward Z. Yang <edwardzyang@…> (02/26/09 00:38:42)
- git-committer:
- Edward Z. Yang <edwardzyang@…> (02/26/09 00:38:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gutenbach/debian/lib/sipbmp3-filter
r3a900ef rb5d15a0 96 96 print(ZEPHYR "$opts{'n'}\@$opts{'H'} is playing:\n"); 97 97 98 # For the Now Playing remctl command 99 open(STATUS, '>', '/var/run/sipbmp3/status') or die("Can't open status file /var/run/sipbmp3/status"); 100 98 101 # So, the file we're currently processing is "-d/-e". 99 102 … … 105 108 if ($magic) { 106 109 printf(ZEPHYR "%s file %s\n", $magic, $opts{'J'}); 107 printf(ZEPHYR "\@b{%s}\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 110 printf(STATUS "Filetype: %s\n", $magic); 111 printf(STATUS "Filename: %s\n", $opts{'J'}); 112 if (exists $fileinfo->{'Title'}) { 113 printf(ZEPHYR "\@b{%s}\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 114 printf(STATUS "Title: %s\n", $fileinfo->{'Title'}); 115 } 108 116 foreach my $key (qw/Artist Album AlbumArtist/) { 109 printf(ZEPHYR "%s\n", $fileinfo->{$key}) if exists $fileinfo->{$key}; 117 if (exists $fileinfo->{$key}) { 118 printf(ZEPHYR "%s\n", $fileinfo->{$key}) if exists $fileinfo->{$key}; 119 printf(STATUS "%s: %s\n", $key, $fileinfo->{$key}); 120 } 110 121 } 111 122 my $tempdir = tempdir(); … … 119 130 print STDERR "Resolved external reference to $filepath\n"; 120 131 printf(ZEPHYR "%s\n", $filepath); 121 close(ZEPHYR);132 printf(STATUS "External: %s\n", $filepath); 122 133 } 123 134 elsif (-T $filepath) { 124 135 split_playlist($filepath, \%opts); 125 136 close(ZEPHYR); 137 close(STATUS); 126 138 exit 0; 127 139 } … … 130 142 #printf(ZEPHYR "Job priority %s\n", $opts{'C'}) if ($opts{'C'} && ($opts{'C'} ne 'A')); 131 143 close(ZEPHYR); 144 close(STATUS); 132 145 play_mplayer_audio($filepath, \%opts); 133 146 … … 246 259 247 260 close(ZEPHYR); 261 open(STATUS, '>', '/var/run/sipbmp3/status'); 262 close(STATUS); 248 263 } 249 264 else { # child
Note: See TracChangeset
for help on using the changeset viewer.