upsies.uis.tui.commands.release_name

Generate properly formatted release name

Classes

class upsies.uis.tui.commands.release_name.release_name(args, config)[source]

Bases: CommandBase

Generate properly formatted release name

IMDb is searched to get the correct title, year and alternative title if applicable.

Audio and video information is detected with mediainfo.

Missing required information is highlighted with placeholders, e.g. “UNKNOWN_RESOLUTION”.

names = ('release-name', 'rn')

Sequence of command names

The first name is the full name and the rest are short aliases.

cli_arguments = {'RELEASE': {'help': 'Release name or path to release content', 'type': <function release>}, ('--edition', '--ed'): {'help': 'Override edition (e.g. "Remastered,Uncut")'}, ('--episodes', '--ep'): {'help': 'Override season/episode info (e.g. "S03", "S06E09" or "S01E02 The Episode Title")', 'type': <function episodes>}, ('--group', '--gr'): {'help': 'Override group'}, ('--imdb', '--im'): {'const': True, 'group': 'webdb', 'help': 'Use IMDb to fill in info like title, year, etc', 'metavar': 'ID_OR_URL', 'nargs': '?', 'type': <function webdb_id.<locals>.webdb_id>}, ('--separator', '-s'): {'default': ' ', 'help': 'Separator between parts (default: " ")'}, ('--service', '--se'): {'help': 'Override source service (e.g. "AMZN")'}, ('--source', '--so'): {'help': 'Override source (e.g. "BluRay" or "WEB-DL")'}, ('--title', '--ti'): {'help': 'Override title'}, ('--tmdb', '--tm'): {'const': True, 'group': 'webdb', 'help': 'Use TMDb to fill in info like title, year, etc', 'metavar': 'ID_OR_URL', 'nargs': '?', 'type': <function webdb_id.<locals>.webdb_id>}, ('--tvmaze', '--tv'): {'const': True, 'group': 'webdb', 'help': 'Use TVmaze to fill in info like title, year, etc', 'metavar': 'ID_OR_URL', 'nargs': '?', 'type': <function webdb_id.<locals>.webdb_id>}, ('--year', '--ye'): {'help': 'Override year', 'type': <function release_year>}}

CLI argument definitions for this command

This is a dict in which keys are option names or flags (e.g. "PATH" or ("--path", "-p") and each value is a dict with keyword arguments for argparse.ArgumentParser.add_argument().

Additionally, you may specify a group in each keyword argument dictionary. Arguments with the same group value are mutually exclusive, meaning the user can only specify one of them.

property jobs

Iterable of JobBase instances

Each JobBase instance may also be None for inactive jobs.