Exemplo n.º 1
0
 def refreshTracker(self):
     torrent = self.standardDetails.getData()
     if not torrent:
         return
     if DEBUG:
         print >>sys.stderr,'GUIUtility: refresh ' + repr(torrent.get('content_name', 'no_name'))
     if torrent:
         check = TorrentChecking(torrent['infohash'])
         check.start()
def run():
    print "start run"
    #    torrent_db = TorrentDBHandler.getInstance()
    #    key = ['infohash', 'torrent_name', 'torrent_dir', 'relevance', 'info',
    #                'num_owners', 'leecher', 'seeder', 'category']
    #    data = torrent_db.getRecommendedTorrents(key)
    #
    #    for idata in data[54:100]:
    #        trackerChecking(idata)
    for x in range(1000):
        t = TorrentChecking()
        t.start()
        sleep(2)
Exemplo n.º 3
0
def run():
    print "start run"
#    torrent_db = TorrentDBHandler.getInstance()
#    key = ['infohash', 'torrent_name', 'torrent_dir', 'relevance', 'info', 
#                'num_owners', 'leecher', 'seeder', 'category']
#    data = torrent_db.getRecommendedTorrents(key)
#
#    for idata in data[54:100]:
#        trackerChecking(idata)
    for x in range(1000):        
        t = TorrentChecking()
        t.start()
        sleep(2)
Exemplo n.º 4
0
 def refreshTrackerStatus(self, torrent):
     "Upon the reception of a new discovered torrent, directly check its tracker"
     if DEBUG:
         print >> sys.stderr, time.asctime(),'-', "metadata: checking tracker status of new torrent"
     check = TorrentChecking(torrent['infohash'])
     check.start()
Exemplo n.º 5
0
 def refreshTrackerStatus(self, torrent):
     "Upon the reception of a new discovered torrent, directly check its tracker"
     if DEBUG:
         print >> sys.stderr, "metadata: checking tracker status of new torrent"
     check = TorrentChecking(torrent['infohash'])
     check.start()