update video download url

This commit is contained in:
OMGeeky
2023-06-02 17:48:28 +02:00
parent e369535b23
commit b0d22659a7
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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?;