Correctly showing downloads with various statuses

Fixed the bug causing an error when a torrent has a status other
than 'stopped', 'seeding' or 'downloading'.
This commit is contained in:
Artem Glebov 2013-03-09 09:49:09 +03:00
parent 50e9e2f286
commit 9e98d1a26b
2 changed files with 1 additions and 1 deletions

View file

@ -87,7 +87,7 @@ class TransmissionGUI(xbmcgui.WindowXMLDialog):
'downloading': 'down.png'}
l.setLabel(torrent.name)
l.setLabel2(statusline)
l.setProperty('TorrentStatusIcon', statusicons[torrent.status])
l.setProperty('TorrentStatusIcon', statusicons.get(torrent.status, 'pending.png'))
l.setProperty('TorrentID', str(i))
l.setProperty('TorrentProgress', "%.2f" % torrent.progress)
l.setInfo('torrent', torrent.fields)

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB