Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-391

Picard doesn't handle invalid AcoustID fingerprints correctly.

XMLWordPrintable

      I had a corrupted file which generated an invalid acoustID (fpcalc had trouble reading the file)

      based on fpcalc output,

      http://api.acoustid.org/v2/lookup?client=8XaBELgH&duration=170&fingerprint=AQAAAA should be the lookup URL.

      Generates the following error:
      E: 140001218299648 12:35:20 Network request error for http://api.acoustid.org:80/v2/lookup: Error downloading http://api.acoustid.org:80/v2/lookup - server replied: BAD REQUEST (QT code 299, HTTP code 400)
      Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/picard/webservice.py", line 221, in _process_reply
      handler(xml_handler.document, reply, error)
      File "/usr/lib/python2.7/dist-packages/picard/acoustid.py", line 99, in _on_lookup_finished
      results = document.response[0].results[0].children.get('result')
      File "/usr/lib/python2.7/dist-packages/picard/webservice.py", line 75, in _getattr_
      raise AttributeError, name
      AttributeError: results

            lukas Lukáš Lalinský
            hawke Alex Mauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                1.2