mirror of
https://github.com/OMGeeky/twitch_data.git
synced 2025-12-26 16:27:24 +01:00
update video download url
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "twitch_data"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
@@ -13,7 +13,7 @@ exponential_backoff = { git = "https://github.com/OMGeeky/exponential_backoff" }
|
||||
reqwest = { version = "0.11", features = ["default", "stream"] }
|
||||
#twitch_api = { version = "0.7.0-rc.3", features = ["helix", "client", "twitch_oauth2", "reqwest"] }
|
||||
tokio = { version = "1.23", features = ["full", "macros"] }
|
||||
twitch_api = { version = "0.7.0-rc.4", features = ["all", "reqwest"] }
|
||||
twitch_api = { version = "0.7.0-rc.6", features = ["all", "reqwest"] }
|
||||
twitch_types = { version = "0.4.1", features = ["stream", "timestamp", "default"] }
|
||||
twitch_oauth2 = "0.12.4"
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ impl<'a> TwitchClient<'a> {
|
||||
let signature = signature.into();
|
||||
|
||||
let playlist_url = format!(
|
||||
"http://usher.twitch.tv/vod/{}?nauth={}&nauthsig={}&allow_source=true&player=twitchweb",
|
||||
"http://usher.ttvnw.net/vod/{}?nauth={}&nauthsig={}&allow_source=true&player=twitchweb",
|
||||
video_id, token, signature
|
||||
);
|
||||
let playlist = check_backoff_twitch_get(playlist_url).await?.text().await?;
|
||||
|
||||
Reference in New Issue
Block a user