8 releases
0.2.1 | Oct 31, 2022 |
---|---|
0.2.0 | Oct 31, 2022 |
0.1.5 | Oct 31, 2022 |
#55 in #twitch
25 downloads per month
19KB
297 lines
Twitch Recover
This crate allows you to recover a twitch vod.
Details
- Recover from a twitchtracker url
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);
- Manual recover
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);
License
Licensed under GPL-3.0
lib.rs
:
Twitch Recover
This crate allows you to recover a twitch vod.
Details
- Recover from a twitchtracker url
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);
- Manual recover
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);
License
Licensed under GPL-3.0Dependencies
~12–26MB
~360K SLoC