Ignore:
Timestamp:
Mar 11, 2006, 9:05:43 PM (19 years ago)
Author:
simon
Message:

Fix KeyError on 'filename'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mpd-status/trunk/mpd-status.py

    r22 r23  
    4242        title = '%(artist)s%(album)s%(track)s%(title)s' % fields
    4343    else:
    44         title = splitext(basename(fields['filename']))[0]
     44        title = splitext(basename(fields['file']))[0]
    4545    time = '%(time)s/%(length)s %(percent)s' % fields
    4646    outstr = '%s %s [%s]' % (status, title, time)
Note: See TracChangeset for help on using the changeset viewer.