the following will make your

the following will make your code more simple:

for t in tors:
   tor = KTorrent.torrent(t)
   for tracker in tor.trackers():
      if 'piratebay.org' in tracker:
         tor.setTrackerEnabled(tracker, 0)

   tor.addTracker(...)

Reply

  • Allowed HTML tags: <a> <b> <em> <h1> <h2> <h3> <h4> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options