twitch_recover

Crates.iotwitch_recover
lib.rstwitch_recover
version0.2.1
sourcesrc
created_at2022-10-30 20:03:37.287725
updated_at2022-10-31 10:58:50.775517
descriptionRecover a twitch vod
homepage
repositoryhttps://gitea.heartnerds.org/Mageas/twitch_recover
max_upload_size
id701635
size53,185
Arnaud Gaydamour (Mageas)

documentation

https://docs.rs/twitch_recover

README

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
Commit count: 0

cargo fmt