vidocq is a tool designed to extract information from a torrent/media file name written in rust. It is designed to be a lighter alternative to guessit (much more complete).
- Rust 1.28.0
Download binary in the releases page (https://github.com/macarrie/vidocq/releases) and copy it into $PATH
Clone the repository, build the binary with cargo and copy the file somewhere in your PATH.
git clone https://github.com/macarrie/vidocq
cargo build --release
cp target/release/vidocq /usr/local/bin/
vidocq 0.1.3
macarrie
Command line tool to retrieve informations from a media/torrent name. Outputs information found as json
USAGE:
vidocq [OPTIONS] <NAME>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-t, --type <TYPE> Type of the media to detect. Possible values are 'movie, episode'. If this option is not
passed, the media type will be detected automatically
ARGS:
<NAME> Name to parse
$ vidocq "South Park S18E05 HDTV x264-KILLERS [eztv]"
Result:
{
"audio_channels": null,
"audio_codec": null,
"container": null,
"episode": 5,
"media_type": "episode",
"quality": null,
"release_group": "KILLERS [eztv]",
"release_type": "hdtv",
"season": 18,
"title": "South Park",
"raw": "South Park S18E05 HDTV x264-KILLERS [eztv]",
"video_codec": "h264",
"year": 0
}A lot of vidocq tests are shamelessly stolen from the excellent following projects:
To run the tests:
cargo test
Vidocq is Open Source. Do not hesitate to open issues for bugs or improvements