Expand description
§wyzie-subs
A client for downloading subtitles from sub.wyzie.ru.
§Features
utoipa-impl- Implements ToSchema on data structuresschemars-impl- Implements JsonSchema on data structures
§Usage
Add this to your Cargo.toml:
// Build a default client
let wyzie = WyzieClient::default();
// Or configure it
let wyzie = WyzieClient::builder()
.base_url(Url::parse("https://sub.wyzie.ru")?)
.reqwest_client(Client::new())
.build();
// Search for subtitles
let params = SearchParams::builder()
.id("93740".to_string())
.season(1)
.episode(1)
.build();
let subtitles = wyzie.search(¶ms).await?;§License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Re-exports§
pub use client::*;