Jump to content

Duplicate media in seperate libraries doesn't populate metadata


Recommended Posts

Underclass
Posted

Hi there, I've been using Janitorr to help with my emby server ( https://github.com/Schaka/janitorr ) and part of that involves the creation of a second "leaving-soon" library for my items.

When an item is added into the leaving-soon library Emby doesn't generate any metadata for it ( this thread goes into a bit more detail about it https://github.com/Schaka/janitorr/issues/48 ) .

Items are moved via hardlink and have the exact same filename and folder format as the original library so Emby shoud recognise things like normal, it just seems to refuse to want to attach metadata to a second item sharing the same imdb code possibly?

An example being "Film" is in library 'Movies'. Emby generates metadata for 'Movies' as it normally would. "Film" then gets copied over to Library 'Leaving-Soon'. Once it's in 'Leaving-Soon Emby fails to generate any metadata, even with a forced refresh and replace all images. A way of getting around this however is to manually copy across the metadata that was created originally for 'Movies' into the 'Leaving-Soon' library and the metadata appears like normal.

Below is how items appear in the second library, even after a metadata refresh.

348982444-931d1609-e83b-4e97-8d00-684429161067.png.f95e5013e78bd269840ea8ac0aa77672.png

Below is how they should appear and do so in the first library.

348983038-bb14a3ab-6d9e-4b09-8566-a662bb50f457.thumb.png.b4f621371a06de28327a0059add11e56.png

visproduction
Posted

UC,
I do not know this plug in.  I assume you like the features and ease of clicking media into a new "leaving-soon" list.  Does Janitorr leave the original media in it's original folder?  If so, then the media will still appear together with all the other media in searches, genres for that library.  It appears the code issues from github show that Emby does not duplicate the thumbs and metadata for the Leaving-soon listing. Since this was not an Emby feature, there is no code that creates a new listing, you would have to hack this together.  Any hack you make would probably disappear with every update.

Why not create a Leaving-soon library list by moving the media into a separate Leaving-soon library folder?  You would need to move the files using Windows Explorer, or some Linux command or File Folder app, or remotely with SCP / FTP app?  This is either multi click, drag, drop, or a linux quick script.  Moving say 50 media folders to another library should take from 1 to 10 minutes at most.  Seems like that would be a lot easier and you would get your latest leaving-soon row on the home page.

Another option is to create a Leaving-soon collection and give it a metadata sort title to appear either first or near to the first listing in collections.  Turn the collections listings on (available in Beta).

Seems like maybe not reinventing the wheel here, when there are already easy options.

Hope that helps.

adminExitium
Posted

The hardlink causing the same inodes for both the files may be a potential problem, but we will need to see the logs from when you added the library and the file to confirm.

Underclass
Posted

@visproductionThe point of janitorr is that it automatically moves across shows/movies that haven't been watched in a certain amount of time when you're running low on disk space so the creation of the libraries and moving files across is done automatically through the janitorr docker container. (It uses the emby api to create the libraries). Manually creating the leaving soon libraries and shifting things across myself kind of defeats the point of that aspect and requires me to keep track of what's been watched over the last year with my multiple users (something janitorr does itself with the help of jellystat).

@adminExitiumhere's the log from when I had it create a library just now (it has a decent amount of items since I just gave it a timeframe to make sure it added items, sorry for that)

embyserver.txt

  • Thanks 1
adminExitium
Posted

It almost looks like all the metadata providers are disabled. Can you double-check that they’re actually enabled? And please provide a debug (because the above is only the info level) log for refreshing one of the items in that library after the verification.

adminExitium
Posted

Also, you may be better off just creating the library manually and then using "janitorr" to add/remove content from the respective library folder, if that's an option.

Underclass
Posted

image.png.5d97cdcde93d0a917b3f635684593456.png

All metadata providers are enabled.

And here's the logs with me refreshing one of the items.

embyserver.txt

Posted

are you sure that's the right library settings? How many Emby libraries have you added, and what folder paths are added to each one?

Underclass
Posted

I'm positive that's the right library settings.

My libraries:

image.thumb.png.d8efe30c2878ea066e68f7c96798ffea.png

and the library settings:

image.png.7a921e889f1a63fd2fc95e6e83a0ed24.png

Posted

Try unchecking and rechecking those metadata downloaders, then close the settings and try refreshing the metadata again.

If that doesn't help, then please attach the complete emby server log rather than a snippet. Thanks.

Underclass
Posted

That seems to have done it. Unchecking, closing the settings. Refreshing the page. Opening the settings, checking the metadata, refreshing and then refreshing metadata has solved the issue. Thank you

  • Thanks 1
adminExitium
Posted

Just FYI, that probably means the initial library creation request wasn’t correct/complete. You may want to check with the janitorr devs about it if you can reproduce the issue with a new library.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...