Fix identation and remove debug messages

This commit is contained in:
fernandog 2014-10-28 14:19:41 -02:00
parent e2fb283f00
commit aa68c0259f

View file

@ -74,18 +74,19 @@ class SubstitutePlayer(xbmc.Player):
torrents = self.transmission.list()
for tid, torrent in torrents.iteritems():
if self.keep_seeding == 'true' and torrent.status not in ('seeding'):
print "[Transmission Debug] - Pausing: " + str(torrent.name) + " - " + str(torrent.status)
#print "[Transmission Debug] - Pausing: " + str(torrent.name) + " - " + str(torrent.status)
self.transmission.stop(tid)
elif self.keep_seeding == 'false':
print "[Transmission Debug] - Pausing (All): " + str(torrent.name) + " - " + str(torrent.status)
#print "[Transmission Debug] - Pausing (All): " + str(torrent.name) + " - " + str(torrent.status)
self.transmission.stop(tid)
elif self.keep_seeding == 'true' and torrent.status in ('seeding'):
print "[Transmission Debug] - Not Pausing: " + str(torrent.name) + " - " + str(torrent.status)
#print "[Transmission Debug] - Not Pausing: " + str(torrent.name) + " - " + str(torrent.status)
pass
else:
print "[Transmission Debug] - None criteria met"
#print "[Transmission Debug] - None criteria met"
pass
xbmc.sleep(120000)
def refreshSettings(self):
settings = common.get_settings()
if settings != self.prev_settings: