Example #1
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)
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)
 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()
 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()