Changeset 4e5ee08 for server/lib/gutenbach
- Timestamp:
- Aug 12, 2010, 9:27:43 PM (14 years ago)
- Branches:
- master, debian, mac, no-cups
- Children:
- 79fac02
- Parents:
- 22be2fa
- git-author:
- Jessica B. Hamrick <jhamrick@…> (08/12/10 21:27:43)
- git-committer:
- Jessica B. Hamrick <jhamrick@…> (08/12/10 21:27:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/lib/gutenbach
rb58aada r4e5ee08 116 116 print(ZEPH "Playback aborted.\n"); 117 117 close(ZEPH); 118 119 open(STATUS, ">", "/var/run/gutenbach/status"); 120 print(STATUS, ""); 121 close(STATUS); 118 122 die; 119 123 } … … 130 134 my ($newpath); 131 135 136 open(STATUS, ">", "/var/run/gutenbach/status"); 137 132 138 if ($magic) { 133 139 # $magic means that Image::ExifTool was able to identify the type of file 134 140 printf(ZEPHYR "%s file %s\n", $magic, $arguments{"job-title"}); 141 printf(STATUS "%s file %s\n", $magic, $arguments{"job-title"}); 135 142 $status .= sprintf(" Filetype: %s.", $magic); 136 143 $status .= sprintf(" Filename: %s.", $arguments{"job-title"}); … … 138 145 if (exists $fileinfo->{'Title'}) { 139 146 printf(ZEPHYR "\@b{%s}\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 147 #printf(STATUS "%s\n", $fileinfo->{'Title'}) if exists $fileinfo->{'Title'}; 140 148 $status .= sprintf(" Title: %s.", $fileinfo->{'Title'}); 141 149 } … … 143 151 if (exists $fileinfo->{$key}) { 144 152 printf(ZEPHYR "%s\n", $fileinfo->{$key}) if exists $fileinfo->{$key}; 153 printf(STATUS "%s\n", $fileinfo->{$key}) if exists $fileinfo->{$key}; 145 154 $status .= sprintf(" %s: %s\n", $key, $fileinfo->{$key}); 146 155 } … … 200 209 201 210 close(ZEPHYR); 211 close(STATUS); 202 212 print CUPS "NOTICE: $status\n"; 203 213 play_mplayer_audio($filepath, \%arguments); … … 329 339 print ZEPHYR "Playback completed successfully.\n"; 330 340 close(ZEPHYR); 341 open(STATUS, ">", "/var/run/gutenbach/status"); 342 print(STATUS, ""); 343 close(STATUS); 331 344 } 332 345 close(MP3STATUS) || print ZEPHYR "mplayer exited $?\n";
Note: See TracChangeset
for help on using the changeset viewer.