Jellyfin Forum
Path substitution problem - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Path substitution problem (/t-path-substitution-problem)



Path substitution problem - nanouk76 - 2024-11-06

Hi all,
I may have stumbled on a very annoying regression with version 10.10.1 Previous functioning version was 10.10, I think. But let me explain my problem.
I am using Kodi on a CoreELEC TV box with the Jellyfin addon but not Jellycon. During installation of the addon, I chose native mode. On the Jellyfin server I had edited /var/lib/jellyfin/root/default/Films/options.xml (with Jellyfin stopped) from the command line (as it was no longer possible in the web GUI due to a previous Jellyfin server version change) and entered all the path substitutions that I needed. Everything worked as expected and I have been able to play my media fine until now.
However, I noticed a message about path substitutions during an automated update in Kodi. So I checked the options.xml file and noticed that all path substitutions had been removed. So I set about re-entering one NetworkPath after stopping the Jellyfin server and waiting for the processes to stop. After restarting the server from the command line, I opened options.xml and it had retained the modification.
But after managing the film library from the web UI, options.xml had again reverted back to a version without any NetworkPath lines. And I cannot play any file obviously.
Interestingly, the options.xml file with network paths survives a simple restart of Jellyfin from the command line.
Any help would be much appreciated as I had rather stick with native mode in the Kodi Jellyfin addon.
TIA


RE: Path substitution problem - gnattu - 2024-11-06

Jellyfin 10.10 completely removed ntework path and it will no longer work.


RE: Path substitution problem - nanouk76 - 2024-11-06

(2024-11-06, 07:39 PM)gnattu Wrote: Jellyfin 10.10 completely removed ntework path and it will no longer work.
Thanks for the quick reply. Dang! I guess I missed the memo Worried-face 
Was a matter of security behind the decision? Better be coz it's a bloody annoyance if you ask me. Don't see how that functionality bothered anyone to be honest. Left more flexibility to those who chose to go that path and were prepared to add all those NetworkPath lines. Anyway, not much choice now but to rebuild the database... Disappointed user here, after being thrilled by the software.


RE: Path substitution problem - hillo - 2024-11-19

As someone who just updated and ran into the same problem and found this thread from Google, I also managed to find a solution:

The Jellyfin for Kodi addon now has a section for defining path substitutions, which is accessed through the regular menu, where all the libraries and tools for managing them are (not the settings). Remote path is what you have set in your Jellyfin libraries, and local path is self explanatory. I have multiple libraries but a single substitution for the base path worked for all of them. You may have to repair your libraries once.


RE: Path substitution problem - mcarlton00 - 2024-11-19

Path substitution was removed from the server because it complicated the API and library code and it was really just a holdover from ye olden days when we forked.

Native mode was redesigned to function entirely client side in this PR https://github.com/jellyfin/jellyfin-kodi/pull/938 which has now been released in Jellyfin for Kodi 1.0.6