Skip to content

Commit 57bbd7f

Browse files
committed
fix(vod): only try non-optional video format
1 parent c8cad68 commit 57bbd7f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "twitchlink"
3-
version = "1.1.1"
3+
version = "1.1.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub fn print_vod_links(vod_id: &str, secrets: Secrets) {
8383
let vod_link = domain.to_string()
8484
+ "/"
8585
+ caps.get(2).unwrap().as_str()
86-
+ "/720p60/index-dvr.m3u8";
86+
+ "/chunked/index-dvr.m3u8";
8787
// println!("{}", &vod_link);
8888

8989
if let Ok(response) = reqwest::blocking::get(&vod_link) {
@@ -200,7 +200,7 @@ fn main() {
200200
let args: Vec<String> = env::args().collect();
201201
assert!(args.len() == 2, "[ERR] Link not found.");
202202

203-
let user_arg = &args[1];
203+
let user_arg = &args[1].to_lowercase();
204204
println!("ID: {user_arg}");
205205

206206
// Guess if user_arg is for vod or stream.

0 commit comments

Comments
 (0)