upsies.uis.tui.commands.mediainfo

Print mediainfo output

Classes

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

Bases: CommandBase

Print mediainfo output

Directories are recursively searched for the first video file in natural order, e.g. “File1.mp4” comes before “File10.mp4”.

Any irrelevant leading parts in the file path are removed from the output.

names = ('mediainfo', 'mi')

Sequence of command names

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

cli_arguments = {'CONTENT': {'help': 'Path to release content', 'type': <function content>}, ('--exclude-files', '--ef'): {'default': (), 'help': 'Glob pattern to exclude from CONTENT (matched case-insensitively against path relative to CONTENT)', 'metavar': 'PATTERN', 'nargs': '+'}, ('--exclude-files-regex', '--efr'): {'default': (), 'help': 'Regular expression to exclude from CONTENT (matched case-sensitively against path relative to CONTENT)', 'metavar': 'PATTERN', 'nargs': '+', 'type': <function regex>}, ('--format', '-f'): {'default': '{MEDIAINFO}', 'help': 'Text that contains the placeholder "{MEDIAINFO}", which is replaced by the `mediainfo` output\nExample: "[mediainfo]{MEDIAINFO}[/mediainfo]"'}, ('--from-all-videos', '-a'): {'action': 'store_true', 'help': 'Get mediainfo from each video file beneath CONTENT'}}

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.