You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mageas 64d7a2c384
Update: version 0.2.1
1 month ago
src Update: README 1 month ago
.gitignore Initial commit 2 months ago
Cargo.lock Update: version 0.2.1 1 month ago
Cargo.toml Update: version 0.2.1 1 month ago
LICENSE Add: LICENSE 2 months ago
README.md Update: README 1 month ago
rustfmt.toml Initial commit 2 months ago

README.md

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