1
0
Fork
You've already forked yts-lib
0
Library to search YTS movies info and torrent links
This repository has been archived on 2026年06月27日. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Rust 100%
Find a file
2026年03月10日 20:08:02 -03:00
examples upgrade libs 2026年03月10日 20:08:02 -03:00
src upgrade libs 2026年03月10日 20:08:02 -03:00
.gitignore first approach 2025年07月03日 16:41:54 -03:00
Cargo.toml upgrade libs 2026年03月10日 20:08:02 -03:00
LICENSE Initial commit 2025年06月22日 10:40:29 -03:00
README.md upgrade libs 2026年03月10日 20:08:02 -03:00

yts-lib

Library to search YTS movies info and torrent links

Description

This crate provides an interface for searching and retrieving movie information from the YTS API, including filtering options, pagination, and torrent details. It offers both asynchronous and blocking (synchronous) interfaces, with flexible filtering and ordering options. It uses a web scraper to build the api

Usage

Add this crate to your Cargo.toml:

[dependencies]
yts-lib = "0.1.0"

Enable blocking feature if needed

[dependencies]
yts-lib = { version = "0.1.0", features = ["blocking"] }

Async Example (default)

useyts::{Filters,OrderBy,Year,Yts};#[tokio::main]asyncfn main()-> yts::Result{letyts=Yts::default();letresponse=yts.search_with_filter("the godfather",Filters::default().year(Year::Range1970to1979).order_by(OrderBy::Rating).build(),).await?;println!("{response:#?}");// Getting the torrents of the first movie
lettorrents=yts.torrents(&response.movies[0]).await?;println!("{torrents:#?}");Ok(())}

Details

Features

  • Default async search. Blocking search available too
  • Search by movie name and/or filters (quality, genre, rating, page, ordering and year)
  • Obtain not only info and metadata but also a torrent download link of the movie.

Docs

Find all the configuration options in the full documentation.


Donate

  • Bitcoin (QR) 1GqdJ63RDPE4eJKujHi166FAyigvHu5R7v
  • Paypal