diff --git a/Cargo.lock b/Cargo.lock index be380ed..6d44cdc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,7 @@ dependencies = [ [[package]] name = "ffdl" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index a5dfc04..be681a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ffdl" -version = "0.1.4" +version = "0.1.5" authors = ["daniel m "] edition = "2021" description = "Download files fast" diff --git a/src/integrations/zippy.rs b/src/integrations/zippy.rs index 47eaf69..7ed3a87 100644 --- a/src/integrations/zippy.rs +++ b/src/integrations/zippy.rs @@ -23,8 +23,13 @@ pub async fn resolve_link(url: &str) -> Result { let body = reqwest::get(url).await?.text().await?; // Try to extract the link using the latest extractor - let link = extract_dl_link_2022_07_17(&host, &body).await; - // Try the previous extractor as fallback if it didn't work + let link = extract_dl_link_2022_07_24(&host, &body).await; + + // Try the previous extractors as fallback if it didn't work + let link = match link { + Err(_) => extract_dl_link_2022_07_17(&host, &body).await, + ok => ok, + }; let link = match link { Err(_) => extract_dl_link_2022_03_07(&host, &body).await, ok => ok, @@ -33,6 +38,56 @@ pub async fn resolve_link(url: &str) -> Result { link } +/* +Updated: 24.07.2022 +Link generation code: + +``` + +