mirror of
https://github.com/correl/Transmission-XBMC.git
synced 2025-03-23 11:15:45 -09: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
|
@ -73,19 +73,20 @@ class SubstitutePlayer(xbmc.Player):
|
||||||
while self.transmission and xbmc.Player().isPlayingVideo() == True:
|
while self.transmission and xbmc.Player().isPlayingVideo() == True:
|
||||||
torrents = self.transmission.list()
|
torrents = self.transmission.list()
|
||||||
for tid, torrent in torrents.iteritems():
|
for tid, torrent in torrents.iteritems():
|
||||||
if self.keep_seeding == 'true' and torrent.status not in ('seeding'):
|
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)
|
self.transmission.stop(tid)
|
||||||
elif self.keep_seeding == 'false':
|
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)
|
self.transmission.stop(tid)
|
||||||
elif self.keep_seeding == 'true' and torrent.status in ('seeding'):
|
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)
|
||||||
else:
|
pass
|
||||||
print "[Transmission Debug] - None criteria met"
|
else:
|
||||||
|
#print "[Transmission Debug] - None criteria met"
|
||||||
|
pass
|
||||||
xbmc.sleep(120000)
|
xbmc.sleep(120000)
|
||||||
|
|
||||||
|
|
||||||
def refreshSettings(self):
|
def refreshSettings(self):
|
||||||
settings = common.get_settings()
|
settings = common.get_settings()
|
||||||
if settings != self.prev_settings:
|
if settings != self.prev_settings:
|
||||||
|
|
Loading…
Add table
Reference in a new issue