Jump to content


Photo

Library rename causes Collections to disappear

collections server library

  • Please log in to reply
12 replies to this topic

#1 kryptonking OFFLINE  

kryptonking

    Member

  • Members
  • 18 posts
  • Local time: 07:40 AM

Posted 20 May 2019 - 07:31 PM

I renamed one of my libraries (from Animated - Movies to Movies - Animated), but it seems that it now cannot detect my collections. The collections are still showing in the user folder (C:\Users\User\AppData\Roaming\Emby-Server\data\collections) and if I look at any of the XML files they still show all the proper paths to the media.

 

When viewing my library through the My Media section on the web app, if I go over the Collections tab there is nothing there. I'm on the latest version of the server (4.1.1.0)



#2 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16552 posts
  • Local time: 03:40 AM
  • LocationWashington State

Posted 20 May 2019 - 08:00 PM

Has a library scan finished since you renamed the library?  As Renaming a library is just as destructive as removing and re-adding the library.



#3 kryptonking OFFLINE  

kryptonking

    Member

  • Members
  • 18 posts
  • Local time: 07:40 AM

Posted 20 May 2019 - 08:08 PM

Has a library scan finished since you renamed the library?  As Renaming a library is just as destructive as removing and re-adding the library.

 

Yes, I even initiated one myself (a couple times actually) just to make sure. It made no difference.



#4 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16552 posts
  • Local time: 03:40 AM
  • LocationWashington State

Posted 20 May 2019 - 08:11 PM

Not sure then as I just renamed a library on my test stable system and all collections returned after the library scan was finished.  Do you use the Auto Boxset plugin or are all your collections created manually?



#5 kryptonking OFFLINE  

kryptonking

    Member

  • Members
  • 18 posts
  • Local time: 07:40 AM

Posted 20 May 2019 - 08:50 PM

Not sure then as I just renamed a library on my test stable system and all collections returned after the library scan was finished.  Do you use the Auto Boxset plugin or are all your collections created manually?

 

I've never used that plugin before, everything was created manually.

 

If I add one of the items to a collection with the same name as it was before (e.g. Pixar Collection), it adds it and the collection comes back. However, now there are duplicates of this collection in the collection drop down (the drop down that comes up when you choose to add something to a collection). But when I look in the collections folder on my hard drive, it's still only listed once. In the XML file now, there's only the one entry that I just added and everything that was there before is now gone.


Edited by kryptonking, 20 May 2019 - 08:50 PM.


#6 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16552 posts
  • Local time: 03:40 AM
  • LocationWashington State

Posted 20 May 2019 - 09:44 PM

I've never used that plugin before, everything was created manually.

 

If I add one of the items to a collection with the same name as it was before (e.g. Pixar Collection), it adds it and the collection comes back. However, now there are duplicates of this collection in the collection drop down (the drop down that comes up when you choose to add something to a collection). But when I look in the collections folder on my hard drive, it's still only listed once. In the XML file now, there's only the one entry that I just added and everything that was there before is now gone.

 

With a test without the Auto Boxset plugin I see this behavior.  If you go to Dashboard-Library-select the Collections library and select scan library, then Search for missing metadata the collections should return.  As least they did in my test. 

 

@Luke Doesn't look like Collections Library get Refreshed during a library scan?  I can only assume this only happens with the Auto Boxset plugin.  (Think we have discussed this before)

 

Steps taken

Removed Auto Boxset plugin

Renamed movie library via Libraries

Auto scan completed - no collections were identified ever though they exist in \data\collections

Performed additional Scan All Libraries no change

Performed Library scan on Collections library (Search for new and updated files) no change

Performed Library scan on Collections library (Search for missing metadata) collections returned

Also repeated steps and Performed Library scan on Collections library (Replace all metadata) collection returned

 

Note my test was on Collections that were generated by the plugin, have not verified Custom/Manual collections returning all content properly.

 

*A quick test adding items to a Misc Collection were returned with the process above.


Edited by Happy2Play, 20 May 2019 - 10:04 PM.
added process


#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142115 posts
  • Local time: 06:40 AM

Posted 21 May 2019 - 12:02 AM

Do they show up in the metadata manager?

#8 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16552 posts
  • Local time: 03:40 AM
  • LocationWashington State

Posted 21 May 2019 - 05:57 AM

Do they show up in the metadata manager?

 

Yes and Search for missing metadata or Replace all metadata can bring them back one by one.



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142115 posts
  • Local time: 06:40 AM

Posted 21 May 2019 - 03:31 PM

How long have you been using Emby Server for?



#10 kryptonking OFFLINE  

kryptonking

    Member

  • Members
  • 18 posts
  • Local time: 07:40 AM

Posted 21 May 2019 - 07:37 PM

I've been using Emby since the beginning.



#11 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 16552 posts
  • Local time: 03:40 AM
  • LocationWashington State

Posted 21 May 2019 - 08:19 PM

I've been using Emby since the beginning.

 

Do the steps in post 6 return your Collections?



#12 kryptonking OFFLINE  

kryptonking

    Member

  • Members
  • 18 posts
  • Local time: 07:40 AM

Posted 22 May 2019 - 07:29 PM

Do the steps in post 6 return your Collections?

 

Yes.

 

I also discovered that if I move a collection folder to a temp space on my hard drive, perform a library scan, move the collection back to it's normal collection and then perform another library scan, it comes back within emby.


  • Happy2Play likes this

#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142115 posts
  • Local time: 06:40 AM

Posted 24 May 2019 - 12:26 AM

Thanks for the feedback, I'm glad that has restored your collections. I will try to find out why it happened in the first place.







Also tagged with one or more of these keywords: collections, server, library

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users