- Extract media info from Plex and put them into an NFO file
- Extract active poster image from Plex
- Extract active art (background art) from Plex
- Put all of them in media directory as tvshow/movie.nfo, poster.jpg, and fanart.jpg to be use on other media server i.e. Jellyfin
- Do it all without refreshing library metadata
- Option to choose what to export
- Option to choose which library to process
- Option to choose which metadata to export, able to export all metadata from plex
- Support separated plex and library servers with path mapping
- Download the repo and put it anywhere you like
- Make sure there are at least config.yml, main.py, and requirements.txt files in it
- Fill in the details in config.yml
- Install python on your system if haven't already (I use python 3.12 but I've confirmed it works with 3.8 also)
- CD to the script directory
cd /your_directory/plex_nfo_exporter
- (optional) Create a virtual environment
python -m venv env
- (optional) Activate virtual environment
env\Scripts\activate
for windows orsource env/bin/activate
- Install dependencies
pip install -r requirements.txt
- Run the script
python main.py
- It support the new plex's tv and movie agent
- It will also detect Hama agent and other agents and set their metadata source ids accordingly
- Option to choose what metadata to export, you can get all if you want to but default to title, metadata agent ids, tagline, plot, and year to let jellyfin pull whatever other metadata not in the nfo file
- For a mixed (tv and movie) library, it will save the NFO as tvshow.nfo
- The images pulled as poster.jpg and fanart.jpg are the current active images in plex
- That way plex and jellyfin should show practically the same library (in image, media names, and metadata)
- I tried to make a docker image with cron job for better convenience but still fails, I will learn more and hope I can do it in the near future
- I'm not a developer by trade
- I run both Plex and Jellyfin because Plex is convenient and Jellyfin is flexible
- My main library is anime in Plex using Hama agent using romaji names
- I also use Kometa to beautify the posters
- My library in plex and jellyfin looks very different because of that
- I've searched a while for tools/scripts to export NFO and images from plex to be used in jellyfin but
- Lambda needs to refresh the whole library the first time and doesn't work well with Kometa because for new media it will export whatever poster and art pulled from metadata because Kometa hasn't run
- XBMC importer only import things from NFO to plex AFAIK
- Googled it but I didn't find what I need