'Notify us when we have new seeder/leecher value in torrent from tracker'

def on_torrent_notify(self, subject, change_type, infohash):

    if (infohash not in self.torrents):
        return
    self._logger.debug('infohash    %s    %s    %s    updated', subject, change_type, hexlify(infohash))
    tdict = self.torrent_db.getTorrent(infohash, keys=['C.torrent_id', 'infohash', 'name', 'length', 'category', 'status', 'num_seeders', 'num_leechers'])
    if tdict:
        infohash_str = hexlify(tdict['infohash'])
        new_seed = tdict['num_seeders']
        new_leecher = tdict['num_leechers']
        if ((new_seed - self.torrents[tdict['infohash']]['num_seeders']) or (new_leecher - self.torrents[tdict['infohash']]['num_leechers'])):
            self.torrents[tdict['infohash']]['num_seeders'] = new_seed
            self.torrents[tdict['infohash']]['num_leechers'] = new_leecher
            self._logger.info('infohash    %s    :    seeder/leecher    changed    seed:%d    leech:%d', infohash_str, new_seed, new_leecher)
