def StartSearch(self, artist, album, id):
    query = self.PrepareAmazonRESTUrl(artist + " " + album)
    url = QUrl.fromEncoded(self.API_URL.format(query))
    LOGGER.debug("ID %d: Sending request to '%s'" % (id, url))

    reply = self.network.get(QNetworkRequest(url))

    def QueryFinished():
      LOGGER.debug("ID %d: Finished" % id)

      self.SearchFinished(id, self.ParseReply(reply))

    reply.connect("finished()", QueryFinished)
    return True
  def GetQueryURL(self, query):
    current_args = self.api_args.copy()
    current_args['q'] = query

    return QUrl.fromEncoded(self.API_URL.format(urllib.urlencode(current_args)))