Skip to content

Addon for kodi to integrate the kodi-nfo-generator tool.

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
LICENSE.txt
Notifications You must be signed in to change notification settings

fracpete/kodi-nfo-generator-addon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kodi-nfo-generator-addon

Addon for kodi to integrate the kodi-nfo-generator tool.

Requirements

kodi-nfo-generator must be installed on the system:

sudo pip install kodi_nfo_generator

Installation

  • 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:
    /var/lib/kodi/.kodi/addons/kodi-nfo-generator-addon/addon.py
    
    Or, if you are running kodi as the pi user:
    /home/pi/.kodi/addons/kodi-nfo-generator-addon/addon.py
    

Notes

  • 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 user kodi, therefore you need to ensure that this user has write access in the movie directories. Otherwise, no .nfo files can be generated.

Custom TV show episode naming conventions

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]).*",

Troubleshooting

  • 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"/>
    

Links

About

Addon for kodi to integrate the kodi-nfo-generator tool.

Topics

Resources

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages