Addon for kodi to integrate the kodi-nfo-generator tool.
kodi-nfo-generator must be installed on the system:
sudo pip install kodi_nfo_generator
- Download the code as a zip file (Clone or download)
- Copy the zip file onto your kodi box
- Ensure that you can install addons from zip files (Settings / System / Add-ons: enable Unknown sources)
- From the main menu, select Addons and then Search, cancel the search
- Now select Install from zip file and select the previously downloaded zip file
- ssh into your kodi box and fix the default path in the Python script to work
for your setup in the following file:
Or, if you are running kodi as the
/var/lib/kodi/.kodi/addons/kodi-nfo-generator-addon/addon.py
pi
user:/home/pi/.kodi/addons/kodi-nfo-generator-addon/addon.py
- You need to update the path to the movies in the
addon.py
file to suit your needs. - The
kodi-nfo-gen
tool will run as userkodi
, therefore you need to ensure that this user has write access in the movie directories. Otherwise, no.nfo
files can be generated.
If your naming conventions for TV show episodes does not follow the S??E??*.*
pattern, then you can use the --episode_pattern
, and
options to adjust the matching and extraction.
If you use ?x??*.*
(e.g., 1x07.mkv) as your convention, you can append the following parameters to correctly match the files and extract the season/episode information to generate .nfo
files:
"--episode_pattern",
"?x??*",
"--season_group",
"([0-9]?[0-9])x[0-9][0-9].*",
"--episode_group",
"[0-9]?[0-9]x([0-9][0-9]).*",
-
Kodi flags the plugin as not compatible
For older versions of kodi, use the following in
addon.xml
:<import addon="xbmc.python" version="2.14.0"/>
For new versions, the following:
<import addon="xbmc.python" version="3.0.0"/>