Skip to content
This repository has been archived by the owner on Dec 7, 2017. It is now read-only.

joshuaavalon/nfogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nfo Gen

Release MIT licensed

THIS IS NO LONGER BEING MAINTENANCE. SEE THE REWRITTEN VERSION.

Overview

Nfo Gen is a script to generate nfo file(s). It is designed to be used by plex agent AvalonXmlAgent.bundle.

Usage

$ python nfogen.py <show name> [arguments]

Arguments

Short Long Argument(s) Example Description
-o --output output directory -o dir/ Output directory of the nfo(s) (default: current)
-s --season season number -s 1 Season number of the nfo(s) (default: 1)
-D --date start date -D 2017-01-01 Start date of the nfo file(s) (default: None)
-m --mpaa mpaa -m TV-14 Common mpaa of all the generate nfo(s)
-d --directors directors -d Alex Mary Common director(s) of all the generate nfo(s)
-w --writers writers -w Alex Mary Common writer(s) of all the generate nfo(s)
-p --producers producers -d Alex Mary Common producer(s) of all the generate nfo(s)
-g --guests guests -w Alex Mary Common guest(s) of all the generate nfo(s)
-i --increment days -i 7 Number of day(s) between each episode (default: 7)
-S --start_episode start episode -S 1 Episode number of the start (inclusive) (default: 1)
-E --end_episode end episode -E 12 Episode number of the end (inclusive) (default: 12)
-r --rating rating -r 1.0 Common rating(s) of all the generate nfo(s)
-t --title title* -t Ep1 Common title(s) of all the generate nfo(s)
-v --version N/A -v Show the version of the program
-h --help N/A -h Show help of the program

* Support template string

Template String

Template string allow using variable in the string for different nfos.

Variable Description
%INDEX% Current index in loop. Start from 0.
%EPISODE% Current episode number.
%DATE% Aired date of current episode. Format: yyyy-mm-dd