mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2024-12-01 03:00:13 +00:00
Fix identation and remove debug messages
This commit is contained in:
parent
e2fb283f00
commit
aa68c0259f
1 changed files with 24 additions and 23 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue