2024-10-01, 10:20 AM
(This post was last modified: 2024-10-01, 12:21 PM by EduardoUK. Edited 4 times in total.)
(2024-09-28, 09:18 PM)EduardoUK Wrote: Ok, after spending some time trying to understand whats going on most of the day, I've figured out how to mount folders and files like "spotlight.html". Mounting an existing folder creates an empty folder, which isn't useful. However, mounting a new folder like "ui" allows files like "spotlight.html" to be added and accessed.
Thats where my luck ran out however, as I was unable to edit existing files within the container, such as "home-html.RANDOMSTRINGHERE.chunk.js". In theory, I could mount a copy of 'home-html.RANDOMSTRINGHERE.chunk.js' file directly if I could obtain the file and identify the random string. This techically worked when I mounted a test.js file.
But whilst I can replace these files, making the existing files editable or persistent outside of the container seems challenging. This would likely require either detaching and manually updating the source files from the container image or making significant changes to the "Featured Content Bar" code.
Disappointing, but I wanted to share what I've learned in hopes that it might help others.
Thanks Guys.
Ok, although not eligant any way, I have managed to get this working while running from a container.
The key is to mount the "UI" folder and also a copy of the "home-html.RANDOMSTRINGHERE.chunk.js". I simply downloaded a copy of the latest portable version of Jellyfin and copied the file from there. I presume the random string may change with different versions of the file so this will need to be taken into account when updating the container - but I guess this goes for any other install aswel?
My mount points for refrence (added to the container file)
- [volume path here]/Jellyfin-web/home-html.RANDOMSTRINGHERE.chunk.js :/usr/share/jellyfin/web/home-html.RANDOMSTRINGHERE.chunk.js
- [volume path here]/Jellyfin-web/ui:/usr/share/jellyfin/web/ui
The above allows me to edit the files and folders needed for the featured content bar to work.
I can now find somthing to watch from my collection in a timely fashion! Happy to help anyone else in the same boat.