Jellyfin Forum
Introducing JF-Listen - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Off Topic (https://forum.jellyfin.org/f-off-topic)
+--- Forum: Self-hosting & Homelabs (https://forum.jellyfin.org/f-self-hosting-homelabs)
+--- Thread: Introducing JF-Listen (/t-introducing-jf-listen)



Introducing JF-Listen - need4swede - 2023-07-06

I have an odd issue where Jellyfin doesn't handle metadata creation very well.
Real time monitoring is turned on, .nfo files are enabled and saving metadata (ie images) to local folders is enabled.
And yet, whenever I would add a new film to my library, Jellyfin wouldn't automatically refresh my library - and whenever it did, it wouldn't get the images. So I would get left with a movie entry with no images or metadata in my library.

So my solution to this was to write a handy tool that listens for changes in a given directory, logs those changes, and then contacts the Jellyfin server and tell it to refresh that library. The tool is configurable and allows for different levels of refresh; including 'Scan for Changes', 'Search for Missing Metadata' and various 'Replace' methods.

I'm sharing it here, in case anyone else finds it useful: https://github.com/need4swede/Python/tree/main/Jellyfin/jf-listen

I also have other Jellyfin scripts, including duplicating your media's folder directory structure, backing up all your .nfo files, adding/removing tags in bulk, and more.

Feel free to ask any questions. Cheers!


RE: Introducing JF-Listen - xaque - 2023-07-06

I've got movies and tvshows added every night and I do not have the issue you described. Images, metadata, subtitles, are all added with real time monitoring enabled. Pretty cool script though, glad you've got a solution; but I'd still do some digging around to find the root of your issue. Either that or upload some logs of these failed attempts.


RE: Introducing JF-Listen - Host-in-the-Shell - 2023-07-07

I've also never experienced anything similar to this. Could it be some kind of permissions issue?