Parse a torrent identifier (magnet uri, .torrent file, info hash)