Changeset cd17920 for queue


Ignore:
Timestamp:
Jun 29, 2010, 1:37:29 AM (14 years ago)
Author:
Jessica B. Hamrick <jhamrick@…>
Branches:
master, debian, mac, no-cups, web
Children:
618236b, 8b676cb
Parents:
6157f97
git-author:
Jessica B. Hamrick <jhamrick@…> (06/29/10 01:37:29)
git-committer:
Jessica B. Hamrick <jhamrick@…> (06/29/10 01:37:29)
Message:

Print file names if exiftool doesn't succeed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • queue/lib/queue

    r6157f97 rcd17920  
    2929    {
    3030        print $job_ref->{'user'}." is currently playing:\n";
    31         print "\t".$magic." file ".$job_ref->{'title'}."\n";
    3231       
    3332        if ($magic)
    3433        {
     34            print "\t".$magic." file ".$job_ref->{'title'}."\n";
    3535            foreach my $key (qw/Title Artist Album AlbumArtist/)
    3636            {
     
    4040                }
    4141            }
     42        }
     43        else
     44        {
     45            print "\t".$job_ref->{'title'}."\n";
    4246        }
    4347       
     
    5458            print "$user: \"$title\" by \"$artist\" on \"$album\"\n";
    5559        }
     60        else
     61        {
     62            my $user = $job_ref->{'user'};
     63            my $file = $job_ref->{'title'};
     64            print "$user: $file\n";
     65        }
    5666    }
    5767   
Note: See TracChangeset for help on using the changeset viewer.