Crates.io | imdb-id |
lib.rs | imdb-id |
version | 3.0.7 |
source | src |
created_at | 2021-07-23 22:41:18.635893 |
updated_at | 2024-01-15 19:27:40.950055 |
description | Get IMDb IDs using a commandline search tool |
homepage | https://codeberg.org/alpha-tango-kilo/imdb-id |
repository | https://codeberg.org/alpha-tango-kilo/imdb-id |
max_upload_size | |
id | 426483 |
size | 1,372,312 |
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:
cargo install imdb-id
If a new version has come out since you installed, you can run
cargo install --force imdb-id
To update the program. For a nicer solution to updating any Rust programs you have installed through Cargo, check out cargo-update
USAGE:
imdb-id [OPTIONS] [search_term]...
ARGS:
<search_term>...
The title of the movie/show you're looking for
OPTIONS:
--api-key <api_key>
Your OMDb API key (overrides saved value if present)
-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
-h, --help
Print help information
-n, --non-interactive
Disables interactive features (always picks the first result)
-u, --print-url
Print the full IMDb URL instead of just the ID
-r, --results <number_of_results>
The maximum number of results to show from IMDb
-t, --type <filter_type>
Filters results to a specific media type (movie or series). Can be given multiple times
-V, --version
Print version information
-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)
ENVIRONMENT VARIABLES:
IMDB_ID_MAX_REQUESTS_PER_SEARCH
Adjusts the limit on the number of requests per search. Default is 10
By default, imdb-id
only comes with -f/--format
support for JSON.
To install with all supported formats, use the following command:
cargo install imdb-id --all-features
Or choose the additional formats you want from the below:
And run:
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!
Version 1:
Version 2:
Version 3: