Skip to content

Export .nfo from Stash for services like Jellyfin Emby Kodi etc

License

Notifications You must be signed in to change notification settings

rustyinfinity/StashNfoExporter

Repository files navigation

StashNfoExporter

Makes '.nfo' file from metadata obtained via Stash for services like Jellyfin Kodi Emby etc .

Usage

  • Clone the repo or download zip and extract it to plugins folder of stash.

  • Make sure lxml and requests modules of python are installed.

How to install ->

pip install lxml requests

or

pip install -r requirements.txt
  • Check the config.py file in StashNfoExporter folder and update it accordingly.

  • Lastly go to Stash > Settings > Tasks > Plugin Tasks > StashNfoExporter > Creates NFO

  • Check Stash > Settings > Logs for any error

For people using Dockers

They can refer to this post #1 (comment)

What it does ?

It will automatically create "filename.nfo" for all the organized files at the same directory of the video file when any movie is added or updated .

I don't use kodi regularly but use jellyfin and it works very nicely with it.

I have added library as Movies and You can use select view as thumb in your library and it will show horizontal thumbs like stash with all the metadata.

By default only Videos that it scan are set to organized ones. You can change organized to False if you want in config.py.

If you have credentials

Api key can be generated from security section in stash settings and added in config.py.

Example !

Screenshot 2024-01-22 at 3 14 44 PM

Click here to see example.nfo file in the repo

Jellyfin Example

Theme that I am using is https://github.com/loof2736/scyfin

Screenshot 2024-01-24 at 4 23 41 PM

Default Theme Examples

Screenshot 2024-01-23 at 11 33 42 AM Screenshot 2024-01-23 at 11 37 53 AM Screenshot 2024-01-24 at 4 24 39 PM

How i add to Kodi

Screenshot 2024-01-22 at 9 07 22 AM

File Structure and File Names

I will add .nfo naming according how you need once i get time in few weeks.
For Now i use this naming and achieve it by renamer plugin for stash.

You can also add all movies in same directory without creating subdirectories but make sure filenames are different as now i have changed saving nfo as "filename.nfo".


Screenshot 2024-01-22 at 9 38 58 AM
Source: https://kodi.wiki/view/Naming_video_files/Movies

Issue

If Movie poster is not showing you can add local ip (192.168.xxx.xxx) in config instead of localhost and readd the library.

Conclusion

I just created this plugin as the https://github.com/scruffynerf/StashNfoExporterKodi was broken after 24.1.
I don't use Emby but I think it will work fine there too.
There will be issues which I don't know yet so pls report them in issues Thanks !

About

Export .nfo from Stash for services like Jellyfin Emby Kodi etc

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages