upsies.uis.tui.commands.poster

Find, download and re-upload poster for movie, series or season

Classes

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

Bases: CommandBase

Download, resize and re-upload poster from IMDb or similar website

names = ('poster',)

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>}, ('--db', '-d'): {'default': None, 'help': 'Case-insensitive database name\nSupported databases: imdb, tmdb, tvmaze', 'type': <function webdb>}, ('--height', '-t'): {'default': 0, 'help': 'Poster height in pixels (default: 0 (no resizing))', 'type': <function integer>}, ('--output', '-o'): {'default': None, 'help': 'Write poster to file OUTPUT'}, ('--upload-to', '-u'): {'default': (), 'help': 'Comma-separated list of case-insensitive names of image hosting services\nOnly the URL from the first successfull upload is used.\nSupported services: freeimage, imgbb, imgbox, pixhost, ptpimg, ra, rfximg', 'metavar': 'IMAGE_HOST', 'type': <class 'upsies.utils.types.ListOfImagehost'>}, ('--width', '-w'): {'default': 0, 'help': 'Poster width in pixels (default: 0 (no resizing))', 'type': <function integer>}}

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.