upsies.uis.tui.commands.webdb
Search online database like IMDb to get an ID
Classes
- class upsies.uis.tui.commands.webdb.webdb_search(args, config)[source]
Bases:
CommandBaseSearch online database like IMDb to get an ID
Pressing
Entersearches for the current query. PressingEnteragain 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
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.