diff --git a/Cargo.toml b/Cargo.toml index 75ae3a9..cbd22a4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index 5739d2a..d3354d9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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?;