Changeset 24 for mpd-status
- Timestamp:
- Mar 11, 2006, 9:22:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mpd-status/trunk/mpd-status.py
r23 r24 27 27 "'track': '''[%track% - ]''', " 28 28 "'title': '''[%title%]''', " 29 "' time': '''[%time%]''', "29 "'length': '''[%time%]''', " 30 30 "'file': '''[%file%]'''" 31 31 "}" … … 37 37 fields = eval(lines[0]) 38 38 line1 = lines[1].split() 39 fields.update(zip(['status', 'pnum', ' length', 'percent'], line1))39 fields.update(zip(['status', 'pnum', 'time', 'percent'], line1)) 40 40 status = fields['status'].strip('[]').capitalize() + ':' 41 41 if fields['title']:
Note: See TracChangeset
for help on using the changeset viewer.