Skip to content

Commit

Permalink
fix(vod): only try non-optional video format
Browse files Browse the repository at this point in the history
  • Loading branch information
3N4N committed Aug 30, 2023
1 parent c8cad68 commit 57bbd7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "twitchlink"
version = "1.1.1"
version = "1.1.2"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn print_vod_links(vod_id: &str, secrets: Secrets) {
let vod_link = domain.to_string()
+ "/"
+ caps.get(2).unwrap().as_str()
+ "/720p60/index-dvr.m3u8";
+ "/chunked/index-dvr.m3u8";
// println!("{}", &vod_link);

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

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

// Guess if user_arg is for vod or stream.
Expand Down

0 comments on commit 57bbd7f

Please sign in to comment.