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:
CommandBaseDownload, 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
dictin which keys are option names or flags (e.g."PATH"or("--path", "-p")and each value is adictwith keyword arguments forargparse.ArgumentParser.add_argument().Additionally, you may specify a
groupin each keyword argument dictionary. Arguments with the samegroupvalue are mutually exclusive, meaning the user can only specify one of them.