upsies.uis.tui.commands.webdb

Search online database like IMDb to get an ID

Classes

Bases: CommandBase

Search online database like IMDb to get an ID

Pressing Enter searches for the current query. Pressing Enter again without changing the query selects the focused search result.

The focused search result can be opened in the default web browser with Alt-Enter.

Search results can be narrowed down with the following parameters:

  • year:YYYY Only return results with a specific release year.

  • type:series|movie Only return movies or series.

  • id:ID Search for a specific, known ID.

If possible, the ID is also detected in normal text without the “id:ID” format. The exact detection is specific to each database, but searching for an URL (e.g. https://www.tvmaze.com/shows/1910) should always work.

If the query starts with “!” and there is only one search result, automatically select it. This is useful when searching for an ID, e.g. “!id:tt0123456”.

names = ('id',)

Sequence of command names

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

cli_arguments = {'DB': {'help': 'Case-insensitive database name\nSupported databases: imdb, tmdb, tvmaze', 'type': <function webdb>}, 'RELEASE': {'help': 'Release name or path to release content', 'type': <function release>}}

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.