An easy-to-use commandline tool to look up the IMDb ID of a movie or show, given its name
It's built for both easy interactive use and scripting capabilities
Because certain sites support searching using these IMDb IDs and it's really useful as an unambiguous identifier
You need to have Rust installed on your system, then run the following:
shell
cargo install imdb-id
``` USAGE: imdb-id [FLAGS] [OPTIONS] [--] [search_term]...
ARGS:
FLAGS: -h, --help Prints help information
-n, --non-interactive
Disables interactive features (always picks the first result)
-V, --version
Prints version information
OPTIONS:
-g, --genre
-y, --year <filter_year>
Filters results to a specific year, or range of years
Media which has no year specified will always be included
Ranges are fully inclusive
Examples: 2021, 1990-2000, 2000- (2000 onwards), -2000 (before 2000)
-f, --format <format>
Change output format to desired standard
Formats are only available if you opted-IN at installation
All the formats imdb-id can support are: json, yaml
-r, --results <number_of_results>
The maximum number of results to show from IMDb
```
Use of the -f/--format
requires an opt-in at install time as it adds a fair amount of bloat to the program.
If you wish to install imdb-id
with support for formats, you can either install them all with:
shell
cargo install imdb-id --all-features
Or choose the formats you want from the below: * YAML * JSON
And run:
shell
cargo install imdb-id --features "<format_one> <format_two>"
If you're reading this now having already installed imdb-id
with the different feature selection to what you wanted, you need to add the --force
flag to the install command to let Cargo override your existing installed binary cleanly
If there's a format you'd like to see supported, open up an issue or a pull request and I can see if I can make it happen!