# Issues with Library

**URL:** <https://forums.plex.tv/t/issues-with-library/792137>\
**Category:** Plex Media Server\
**Tags:** library-management\
**Created:** [May 9, 2022, 6:16am UTC](https://forums.plex.tv/t/issues-with-library/792137 "2022-05-09T06:16:36Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mariof1](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mariof1](https://forums.plex.tv/u/mariof1)\
**Post date:** [May 9, 2022, 6:16am UTC](https://forums.plex.tv/t/issues-with-library/792137/1 "2022-05-09T06:16:36Z")

</div>

I recently removed my library and re-added the same source. I made sure that the database was cleaned and optimised, all metadata was scanned and refreshed several times and I am now noticing the PMS shows few entries in multiple duplicated databases and I can’t find a way to fix the issue

![image](https://global.discourse-cdn.com/plex/original/4X/c/1/7/c171026e96b63969833b3909b42a8e436881a019.png)

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 9, 2022, 7:34am UTC](https://forums.plex.tv/t/issues-with-library/792137/2 "2022-05-09T07:34:03Z")

</div>

At which point is this dialog with “Choose Source”?  
Could you show a bit more of the screen, for context?

Did you delete all libraries or only the Music library?

---

<div class="post-metadata">

**Author:** ![mariof1](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mariof1](https://forums.plex.tv/u/mariof1)\
**Post date:** [May 9, 2022, 7:57am UTC](https://forums.plex.tv/t/issues-with-library/792137/3 "2022-05-09T07:57:23Z")

</div>

Hi, I have deleted only the Music Library. Most of the music content has been added just fine. The files that are shown in duplicated libraries don’t exist in the primary (and only one) Music library.

Here is the screen shot showing that I have only one Music library  
 ![image](https://global.discourse-cdn.com/plex/original/4X/8/1/e/81e6afcc6815d84d870523762efcd2cf3ba42603.png)

If a search an Artist some artists have additional number next to a library name  
 ![image](https://global.discourse-cdn.com/plex/original/4X/8/5/7/857746ff0d0403be844e95929df2c68b449338ce.png)

If I click on the number I get the list of libraries with the same name  
 ![image](https://global.discourse-cdn.com/plex/original/4X/a/7/e/a7e466f29ec9aaddd302e6a38fe160b4721fdd26.png)

---

<div class="post-metadata">

**Author:** ![mariof1](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mariof1](https://forums.plex.tv/u/mariof1)\
**Post date:** [May 9, 2022, 8:21am UTC](https://forums.plex.tv/t/issues-with-library/792137/4 "2022-05-09T08:21:55Z")

</div>

Ok, I have figured out why the issue only affects only certain songs.  
I have just checked the NAS server and some artists exist in multiple folders, when PMS sees the same artist in another folder somewhat adds it to an a ‘new’ library.  
Here’s how I have my Music folder structure:  
ArtistA  
ArtistB; ArtistA  
ArtistA; ArtistC

In the above example PMS will show three libraries next to ArtistA

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 9, 2022, 9:05am UTC](https://forums.plex.tv/t/issues-with-library/792137/5 "2022-05-09T09:05:24Z")

</div>

> [@mariof1](#):
>
> Here’s how I have my Music folder structure:  
> ArtistA  
> ArtistB; ArtistA  
> ArtistA; ArtistC

^^^ This I don’t understand at all.

You can’t combine artists.

---

<div class="post-metadata">

**Author:** ![mariof1](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mariof1](https://forums.plex.tv/u/mariof1)\
**Post date:** [May 9, 2022, 9:40am UTC](https://forums.plex.tv/t/issues-with-library/792137/6 "2022-05-09T09:40:09Z")

</div>

Does the below screen shot make more sense to you?

 ![image](https://global.discourse-cdn.com/plex/original/4X/9/0/f/90f814f1e17954a6724b7f974e080d28e207f2df.jpeg)

In the above example I am seeing “+1” in search results.  
I have the main folder containing all albums of Ariana Grande, however there is an additional folder with an artist called “Ariana Grande; Justin Bieber”.  
The same naming convention applies to the metadata.  
 ![image](https://global.discourse-cdn.com/plex/original/4X/2/d/0/2d051a874ca8053736856f93d1d084d9085efe1c.png)  
 ![image](https://global.discourse-cdn.com/plex/original/4X/9/d/e/9de372691d9fc08e430740c1fd152bd120724d7a.png)

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 9, 2022, 9:41am UTC](https://forums.plex.tv/t/issues-with-library/792137/7 "2022-05-09T09:41:06Z")

</div>

> [@mariof1](#):
>
> The same naming convention applies to the metadata.

That doesn’t work in Plex. No “collaborations” are going to work.

---

<div class="post-metadata">

**Author:** ![mariof1](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mariof1](https://forums.plex.tv/u/mariof1)\
**Post date:** [May 9, 2022, 9:46am UTC](https://forums.plex.tv/t/issues-with-library/792137/8 "2022-05-09T09:46:36Z")

</div>

This does not answer why I am seeing multiple sources when in reality I have only one.  
Also I have never had this issue before and my music library hasn’t changed.  
The issue only started when I re-created my Plex library. I think I have also updated PMS to its latest version at the same time.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 9, 2022, 9:50am UTC](https://forums.plex.tv/t/issues-with-library/792137/9 "2022-05-09T09:50:42Z")

</div>

> [@mariof1](#):
>
> This does not answer why I am seeing multiple sources when in reality I have only one.

I am as puzzled as you on that one.

> [@mariof1](#):
>
> The issue only started when I re-created my Plex library.

You might have been using the older metadata agents in the older library. They behaved slightly different in some special cases.  
But no, it isn’t a good idea to go back to these. They are already deprecated and won’t receive any bugfixes anymore.

Am I seeing that right? The music library is the only library on this server?  
If that is the case, you could delete the database file completely. Just in case the database file is in some way damaged.

---

<div class="post-metadata">

**Author:** ![mariof1](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mariof1](https://forums.plex.tv/u/mariof1)\
**Post date:** [May 9, 2022, 9:59am UTC](https://forums.plex.tv/t/issues-with-library/792137/10 "2022-05-09T09:59:43Z")

</div>

> [@OttoKerner](#):
>
> You might have been using the older metadata agents in the older library. They behaved slightly different in some special cases.

I do admit I juggled between the old and new agent at some point only because the new agent was a bit aggressive with overriding genres despite telling otherwise. All such changes were always followed by full rescan.

> [@OttoKerner](#):
>
> Am I seeing that right? The music library is the only library on this server?  
> If that is the case, you could delete the database file completely. Just in case the database file is in some way damaged.

Yes only one. I could potentially delete the database. Will I lose server preferences also?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 9, 2022, 10:17am UTC](https://forums.plex.tv/t/issues-with-library/792137/11 "2022-05-09T10:17:13Z")

</div>

> [@mariof1](#):
>
> Will I lose server preferences also?

Depends on what you mean by that. Unless you delete the `preferences.xml` from your [plex data folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/), most preferences should survive.

> [@mariof1](#):
>
> I juggled between the old and new agent at some point only because the new agent was a bit aggressive with overriding genres despite telling otherwise. All such changes were always followed by full rescan.

That won’t do any good. Full rescan won’t help.

Go into the Advanced properties of the new library and set Genres to “Embedded Tags”.  
Enable “Prefer local metadata” only if your embedded meta tags are immaculate.

---

<div class="post-metadata">

**Author:** ![mariof1](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mariof1](https://forums.plex.tv/u/mariof1)\
**Post date:** [May 9, 2022, 10:22am UTC](https://forums.plex.tv/t/issues-with-library/792137/12 "2022-05-09T10:22:27Z")

</div>

Ok thanks, I will play around with the fresh DB, will see if it fixes the issue.

> [@OttoKerner](#):
>
> Go into the Advanced properties of the new library and set Genres to “Embedded Tags”.  
> Enable “Prefer local metadata” only if your embedded meta tags are immaculate.

I already had this settings and the agent in many cases forces its own genres but I guess this issue should be raised in a separate threat.

---

<div class="post-metadata">

**Author:** ![dbirch](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dbirch](https://forums.plex.tv/u/dbirch)\
**Post date:** [May 9, 2022, 11:13am UTC](https://forums.plex.tv/t/issues-with-library/792137/13 "2022-05-09T11:13:50Z")

</div>

empty the trash on those databases.

---

<div class="post-metadata">

**Author:** ![irie](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/irie/32/9928_2.png) [@irie](https://forums.plex.tv/u/irie)\
**Post date:** [June 26, 2022, 6:27pm UTC](https://forums.plex.tv/t/issues-with-library/792137/14 "2022-06-26T18:27:10Z")

</div>

I’m having the EXACT same issue. I’ve been tagging my music collection with mp3tag. I thought that maybe using musicbrainz was creating a problem. I have tried multiple “fixes” and none of them seem to work. I was trying to avoid the “nuclear” option of deleting the library and starting over. I’ve emptied the trash, changed the option of local metadata, logged out of the web app, etc… I’m beginning to believe it’s a problem with the server. I have albums where the odd numbered tracks will be under one source and the even tracks under another source.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [September 24, 2022, 6:28pm UTC](https://forums.plex.tv/t/issues-with-library/792137/15 "2022-09-24T18:28:05Z")

</div>

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