    def on_moved(self,event):
        self.logger.debug(event)
        self.on_action(event.dest_path)

    def on_action(self,magnet):
        magnet_processed=str(os.path.abspath(magnet))
        self.logger.info('Processing file: {0}'.format(magnet))
        magnet_contents=Path(magnet).read_text()
        torrent_path=self.client.magnet2torrent(magnet_contents,config('torrent_blackhole',os.path.dirname(magnet)))
        if torrent_path is not None:
            magnet_processed+='.processed'
        else:
            magnet_processed+='.err'
        shutil.move(magnet,magnet_processed)
