Add function 'add_torrent_by_hash'