Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-9223

Enhance ws response for ASIN to include cover-art URL

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web service
    • Labels:
      None

      Description

      Picard is having frequent difficulties downloading Amazon cover art even though the MB web page for the release is able to display it.

      As far as I can determine, the reasons for this are as follows:

      a. MB web site uses an Amazon webservice to get the cover art URL. This requires an account.

      b. Picard has to guess at the URL by inserting the ASIN into a predetermined template - and more often than not this doesn't work. It would not be appropriate to require every Picard user to create an appropriate Amazon account in order to make the same web service calls that MBS does to get the cover art image URL.

      An example of this is MBID af382d6e-e621-45d2-ad49-2bae39918bc5.

      See PICARD-959 for discussion on this.

      I propose that this is fixed by the MBS web service providing the cover art url as part of its response in one of the following two ways:

      Option 1 

      As part of the base MB WS XML response we include the following:

      <asin>B001MVCJ64</asin>
      <cover-art-archive>
          <artwork>false</artwork>
          <count>0</count>
          <front>false</front>
          <back>false</back>
      </cover-art-archive>
      

      This would be enhanced as follows:

      <asin cover-art-href="https://images-eu.ssl-images-amazon.com/images/I/61%2BdV12NPiL.jpg">B001MVCJ64</asin>
      <cover-art-archive>
          <artwork>false</artwork>
          <count>0</count>
          <front>false</front>
          <back>false</back>
      </cover-art-archive>
      

      Option 2

      Enhance the URL-Rels relationship response so that instead of:

      <relation-list target-type="url">
          <relation type="amazon asin" type-id="4f2e710d-166c-480c-a293-2e2c8d658d87">
              <target id="8cfec063-d908-4be8-8553-33a91b986009">https://www.amazon.co.uk/gp/product/B001MVCJ64</target>
          </relation>
      ...
      </relation-list>
      

      we provide:

      <relation-list target-type="url">
          <relation type="amazon coverart" type-id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">
              <target id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx">https://images-eu.ssl-images-amazon.com/images/I/61%2BdV12NPiL.jpg</target>
          </relation>
          <relation type="amazon asin" type-id="4f2e710d-166c-480c-a293-2e2c8d658d87">
              <target id="8cfec063-d908-4be8-8553-33a91b986009">https://www.amazon.co.uk/gp/product/B001MVCJ64</target>
          </relation>
      ...
      </relation-list>
      

      Comments anyone?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sophist Sophist
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Packages

                  Version Package