Skip to content

Commit

Permalink
Merge pull request #17 from quamilek/develop
Browse files Browse the repository at this point in the history
Keyerror 'time'  -  Cleanup song information
  • Loading branch information
mklauber committed Sep 4, 2013
2 parents 80da94d + 67fdd31 commit c9af6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpd/mobile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def current_playlist( request, *args, **keywords ):
#Cleanup song information
for song in c['songs']:
song['filename'] = path.basename( song['file'] )
song['time'] = formatTime( song['time'] )
song['time'] = formatTime( song.get('time', 0) )
return c


Expand Down

0 comments on commit c9af6cd

Please sign in to comment.