Changeset 24


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

Fix track time vs current track time played mix up.

File:
1 edited

Legend:

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

    r23 r24  
    2727    "'track': '''[%track% - ]''', "
    2828    "'title': '''[%title%]''', "
    29     "'time': '''[%time%]''', "
     29    "'length': '''[%time%]''', "
    3030    "'file': '''[%file%]'''"
    3131"}"
     
    3737    fields = eval(lines[0])
    3838    line1 = lines[1].split()
    39     fields.update(zip(['status', 'pnum', 'length', 'percent'], line1))
     39    fields.update(zip(['status', 'pnum', 'time', 'percent'], line1))
    4040    status = fields['status'].strip('[]').capitalize() + ':'
    4141    if fields['title']:
Note: See TracChangeset for help on using the changeset viewer.