Jellyfin Forum
SOLVED: Metadata reading not using root path? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: SOLVED: Metadata reading not using root path? (/t-solved-metadata-reading-not-using-root-path)



Metadata reading not using root path? - lordjynx - 2025-03-17

Sometimes, metadata is picking up a subfolder as the metadata instead of the root.
For example, I have Friends and Vampire Diaries but the metadata is set like this:
(I can't edit the metadata paths either)

/tv/main/Friends_1994_tt0108778/Season_03
and
/tv/kids/The_Vampire_Diaries_2009/Season_02

I use {apps we don't talk about - TDP} to set all of my metadata .nfo and images.
This is causing pictures to not load and sometimes shows end up outside of the folder as a new one.

Does anyone have suggestions on how to fix this?


RE: Metadata reading not using root path? - TheDreadPirate - 2025-03-17

Which folder is the library root? /tv? Or /tv/main and /tv/kids?


RE: Metadata reading not using root path? - lordjynx - 2025-03-17

So in this case, I don't have a root defined but each show is added as a folder.
so, /tv/main/Friends, etc.

Basically, I'm limiting what this person can watch to the folders I add.


RE: Metadata reading not using root path? - lordjynx - 2025-03-17

So, just as a test, I created an empty folder and hard-linked some folders to it.
This worked flawlessly.

Is there a way to fix this w/o having to code a hard-link or symbolic link that anyone can think of?


RE: Metadata reading not using root path? - TheDreadPirate - 2025-03-17

Adding each show as a root is not supported. Jellyfin does not take into account the root folder's name when constructing the query for metadata.

For what you are trying to achieve, using symlinks for each show folder would work. Jellyfin will follow symlinks for folders but not for files.


RE: Metadata reading not using root path? - lordjynx - 2025-03-17

Ok, thanks @TheDreadPirate. I've symlinked all of the shows and created new roots for the people.
Hopefully, these two folks don't keep requesting access to my other shows. Smiling-face


RE: Metadata reading not using root path? - lordjynx - 2025-03-17

For anyone running *{Apps we don't talk about - TDP} that want to automate a symbolic link, here's a script I threw together that should work:
#!/bin/bash

#Prevent errors when saving/testing
if [[ "${Apps we don't talk about - TDP}_eventtype" == "Test" ]]; then
exit
fi

#set the symbolic link path + save folder name from {Apps we don't talk about - TDP}
symlink_dest="user's root path/$(basename "${Apps we don't talk about - TDP}_series_path")"

#only create the symlink if the folder doesn't exist
if [[ ! -L "$symlink_dest" ]]; then
ln -s "${Apps we don't talk about - TDP}_series_path" "$symlink_dest"
fi