Simple Python-based command-line tool to generate .nfo files for movies and TV shows for Kodi.
This tool is aimed at people that manually curate their movie databases, in order to avoid using scrapers that may pull in the wrong information (or none at all). All the user has to do is place an ID file alongside their movie files, the default is *.imdb, containing the unique IMDB movie ID (or full IMDB movie URL). The tool will then scour the movie directories for these files and pull in the information and create the .nfo files in the same location.
now only downloading episode data for seasons that are also on disk rather than all available ones
unescaping HTML entities in the JSON data when loading it
seasons can be extracted now from button-based navigation, as well as the older style “select”-based one.
episode data can be extract from episode-item-wrapper tags as well now
using @type in JSON data to check whether episode data available (i.e., when TVSeries)
using download-missing no longer generates Ignoring unhandled fanart type: download-missing message when fanart already present (just an output bug).
improved checks for existing .nfo files to reduce IMDB requests
added kodi-nfo-rename tool for renaming files using regular expressions (e.g., files of TV shows)
the kodi-nfo-gen tool now has additional options for matching episode files rather than using hardcoded defaults: –episode_pattern, –season_group, –episode_group.
added kodi-nfo-guess tool that performs online database searches for directories that miss meta-files, like .imdb, which the kodi-nfo-gen tool uses as input.
adding user-agent to request headers now (https://github.com/fracpete/kodi-nfo-generator/pull/6)
only making IMDB request when –overwrite flag present or .nfo not present, to avoid making too many calls to IMDB
the –delay no longer applies when not writing a file
fixed TV show .nfo generation (https://github.com/fracpete/kodi-nfo-generator/issues/1)
added download-missing choice for downloading fanart only when it is missing locally (download always performs a download)
not all movie meta-data contains the actor field, now checking whether present (https://github.com/fracpete/kodi-nfo-generator/pull/4)
setup.py excludes versions of beautifulsoup that don’t work (https://github.com/fracpete/kodi-nfo-generator/issues/2)
added experimental support for generating .nfo output for TV series episodes (https://github.com/fracpete/kodi-nfo-generator/issues/1)
ratingValue is now set as string, not float; better handling when preflang_title not available
restricting beautifulsoup version to <=4.6.0 as newer versions fail: https://github.com/fracpete/kodi-nfo-generator/issues/2
added ability to export movie IDs to a CSV file using kodi-nfo-export
added ability to import movie IDs from a CSV file using kodi-nfo-import
kodi-nfo-gen now handles movies that only have limited information available (e.g., no plot or no image)
added interactive mode to tools (–interactive)
initial release, only supports IMDB for the time being
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for kodi-nfo-generator-0.0.13.tar.gz