# Duplicate artists in Iris UI

**URL:** <https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827>\
**Category:** Help and support\
**Created:** [October 11, 2023, 2:32pm UTC](https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827 "2023-10-11T14:32:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chiefy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/chiefy/32/2420_2.png) [@chiefy](https://discourse.mopidy.com/u/chiefy)\
**Post date:** [October 11, 2023, 2:32pm UTC](https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827/1 "2023-10-11T14:32:04Z")

</div>

This is more of a general question, and it’s probably not an issue with Iris, but more Mopidy’s database. Anyhow, I have noticed my library seems to have a lot of duplicated artists. I have gone into their tags and made sure they are the same, but even after re-scanning etc, they show up separate in Iris.

Not really sure how to start debugging this, maybe taking a look at the sqlite DB itself? Is this a known issue?

Thanks for any pointers.  
 ![screenshot-mopidy.chief.home-2023.10.11-10_25_17](https://canada1.discourse-cdn.com/flex036/uploads/mopidy/original/2X/6/699b435252f86bad5188b5f867e582d7eaac0735.png)

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [October 11, 2023, 4:10pm UTC](https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827/2 "2023-10-11T16:10:14Z")

</div>

If I remember correctly this is normally because the tags are actually different in some very subtle way. Whitespace is often the reason, or artist tag vs album artist tag (I think…).

---

<div class="post-metadata">

**Author:** ![Matthias\_Meulien](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/matthias_meulien/32/2260_2.png) [@Matthias\_Meulien](https://discourse.mopidy.com/u/Matthias_Meulien)\
**Post date:** [October 11, 2023, 7:18pm UTC](https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827/3 "2023-10-11T19:18:45Z")

</div>

I recommend to tag all tracks with a tool like [MusicBrainz Picard](https://picard.musicbrainz.org/) that is connected to a database and search for tracks metadata based on so-called “AcousticId”.

I’ve more than 600 local albums (ripped CDs) and the corresponding Mopidy database is very clean, no known duplicates!

---

<div class="post-metadata">

**Author:** ![chiefy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/chiefy/32/2420_2.png) [@chiefy](https://discourse.mopidy.com/u/chiefy)\
**Post date:** [October 11, 2023, 7:32pm UTC](https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827/4 "2023-10-11T19:32:23Z")

</div>

Yes, I think that might’ve been the issue in some cases, but for my examples there’s not a lot to mess up with “The Shins” for example. I have confirmed that the `artist` and `albumartist` tags on all albums are the same. The only thing I can think of is that even after re-scanning mopidy is not re-associating the album with the correct band ID somehow?

To be clear, I’ve had this issue, then edited the tags for `artist` and `albumartist` to ensure consistency between albums, re-scanned the library and some but not all get fixed.

---

<div class="post-metadata">

**Author:** ![chiefy](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/chiefy/32/2420_2.png) [@chiefy](https://discourse.mopidy.com/u/chiefy)\
**Post date:** [October 11, 2023, 8:03pm UTC](https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827/6 "2023-10-11T20:03:20Z")

</div>

Thanks @Matthias_Meulien @kingosticks I figured it out.

So in the case of “The Shins” all files were properly and consistently tagged with `artist` and `albumartist` but it seems like either mopidy or iris is keying in on the `MUSICBRAINZ_ARTISTID` which _some_ albums had but some which are not in MusicBrainz DB, did _not_ have. As soon as I added the `MUSICBRAINZ_ARTISTID` to all of the files, all files are now under a single artist in the UI (after a re-scan and refresh of the actual artist page in the UI).

Thanks again for the tips.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [October 14, 2023, 8:03pm UTC](https://discourse.mopidy.com/t/duplicate-artists-in-iris-ui/5827/7 "2023-10-14T20:03:35Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
