Added method for getting torrent based on hash or id.