Crates.io | twitch_recover |
lib.rs | twitch_recover |
version | 0.2.1 |
source | src |
created_at | 2022-10-30 20:03:37.287725 |
updated_at | 2022-10-31 10:58:50.775517 |
description | Recover a twitch vod |
homepage | |
repository | https://gitea.heartnerds.org/Mageas/twitch_recover |
max_upload_size | |
id | 701635 |
size | 53,185 |
This crate allows you to recover a twitch vod.
let options = VodRecoverOptions {
..Default::default()
};
let url = "https://twitchtracker.com/streamer_id/streams/twitch_tracker_vod_id";
let vod = VodRecover::from_twitchtracker(url).await.unwrap();
let url = vod.get_url(&options).await.unwrap();
println!("{}", url);
let date = "2022-10-29 13:06";
let timestamp = NaiveDateTime::parse_from_str(date, "%Y-%m-%d %H:%M")
.unwrap()
.timestamp();
let options = VodRecoverOptions {
..Default::default()
};
let vod = VodRecover::from_manual("streamer_name", "vod_id", timestamp);
let url = vod.get_url(&options).await.unwrap();
println!("{}", url);