upsies.uis.tui.commands.mediainfo
Print mediainfo output
Classes
- class upsies.uis.tui.commands.mediainfo.mediainfo(args, config)[source]
Bases:
CommandBasePrint
mediainfooutputDirectories 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
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.