upsies.uis.tui.commands.bdinfo

Print bdinfo output

Classes

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

Bases: CommandBase

Print the BDInfo report(s)

This needs a bdinfo executable in your $PATH. It is called like this:

bdinfo –mpls=PLAYLIST_FILE_NAME PATH_TO_BLURAY REPORT_DIRECTORY

Here is a wrapper script that runs BDInfoCLI-ng in a docker container: https://codeberg.org/plotski/upsies/src/branch/master/goodies/bdinfo

names = ('bdinfo', 'bi')

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>}, ('--format', '-f'): {'default': '{BDINFO}', 'help': 'Text that contains the placeholder "{BDINFO}", which is replaced by the BDInfo report\nExample: "[bdinfo]{BDINFO}[/bdinfo]"'}, ('--multiple', '-m'): {'action': 'store_true', 'help': 'Allow selection of multiple playlists and generate multiple BDInfo reports'}, ('--summary', '-s'): {'choices': ('none', 'full', 'quick'), 'default': 'none', 'group': 'playlist_or_summary', 'help': 'Which parts of the BDInfo output to print'}}

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.