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

"Paste Credits" function doesn't apply artist credit if it matched existing name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2021-03-15
    • None
    • Editing interface
    • None

      If a release (or whatnot) is credited to "Artist X", and you paste a credit such as "Artist Y as Artist X", the credited name will be ignored and the credit will get pasted as "Artist Y as Artist Y". On a second paste attempt, the "Artist X" credit is added, since it no longer matches the original artist name. 

      == Original data ==

      When seeding a release with e.g. atisket artist name fields are prefilled.
      Artist credits were already prepared and copied to local storage with "Copy Credits" function. As soon as "paste credits" is used it overwrites the fields as expected but doesn't apply the credited names. Only when pressing the button a second time the "artist as credited" fields are correctly set.

      https://atisket.pulsewidth.org.uk/?url=https://music.apple.com/gb/album/id1554457566

      copiedArtistCredit:"[{"artist":{"name":"Snicklink","typeID":1,"rating":null,"end_date":null,"area":null,"id":1869276,"ended":false,"begin_area_id":null,"unaccented_name":null,"last_updated":"2020-10-22T23:04:08Z","sort_name":"Snicklink","entityType":"artist","gid":"a4bed397-8ab1-426d-9b40-704369dd682d","end_area_id":null,"rating_count":0,"begin_date":null,"user_rating":null,"primaryAlias":null,"comment":"","editsPending":false,"gender_id":1,"uniqueID":"entity-29"},"name":"$niCkLiNk","joinPhrase":""}]"
      
      MB.releaseEditor.init({
            action: "add",
            returnTo: "https://musicbrainz.org/",
            redirectURI: "https://atisket.pulsewidth.org.uk/atasket.php?self_id=859745941358-d_0-s_6xDWZ1Rv4Qw1QezgyCtZNH-i_1554457566\x26created=yes",
            seed: {"seed":{"name":"Lost","labels":[{"label":{"name":"Snicklink"},"catalogNumber":""}],"barcode":"859745941358","languageID":120,"packagingID":7,"scriptID":28,"editNote":"https://atisket.pulsewidth.org.uk/?cached=859745941358-d_0-s_6xDWZ1Rv4Qw1QezgyCtZNH-i_1554457566\r\nwith data from the iTunes + Spotify APIs\r\n\r\n== Vendor links ==\r\nhttps://itunes.apple.com/gb/album/id1554457566\r\nhttps://open.spotify.com/album/6xDWZ1Rv4Qw1QezgyCtZNH\r\n\r\n== Vendor API links ==\r\nhttps://itunes.apple.com/gb/lookup?id=1554457566&entity=song&limit=2000\r\nhttps://api.spotify.com/v1/albums/6xDWZ1Rv4Qw1QezgyCtZNH\r\n  Cached: https://atisket.pulsewidth.org.uk/cached/spotify/albums_6xDWZ1Rv4Qw1QezgyCtZNH.json\r\n","mediums":[{"tracks":[{"name":"Lost","length":"212126","artistCredit":{"names":[{"artist":{"name":"$niCkLiNk"},"joinPhrase":"","name":"$niCkLiNk"}]},"position":1,"number":1}],"format_id":12,"position":1}],"events":[{"country":{"typeID":null,"editsPending":false,"comment":"","name":"[Worldwide]","primary_code":"XW","country_code":"XW","gid":"525d4e18-3d00-31b9-a58b-a146a916de8f","begin_date":null,"last_updated":"2013-08-28T11:55:07Z","id":240,"iso_3166_2_codes":[],"entityType":"area","end_date":null,"iso_3166_1_codes":["XW"],"iso_3166_3_codes":[],"ended":false,"unaccented_name":null},"date":{"day":17,"year":2021,"month":2}}],"relationships":[{"target":{"name":"https://itunes.apple.com/gb/album/id1554457566","entityType":"url"},"linkTypeID":"74"},{"target":{"entityType":"url","name":"https://open.spotify.com/album/6xDWZ1Rv4Qw1QezgyCtZNH"},"linkTypeID":"85"}],"artistCredit":{"names":[{"artist":{"name":"$niCkLiNk"},"name":"$niCkLiNk","joinPhrase":""}]},"releaseGroup":{"typeID":2,"name":"Lost","secondaryTypeIDs":[]},"statusID":1},"errors":[]}
          });
      

            bitmap Michael Wiencek
            chaban chaban
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2021-03-15