From 0f7e05a71da5518d5d23e0edda144b7b796e4540 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Sun, 24 Jul 2022 15:39:00 +0200 Subject: [PATCH] Update zippyshare resolver 2022-07-24 + bump - Bump version to 0.1.5 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/integrations/zippy.rs | 65 +++++++++++++++++++++++++++++++++++---- 3 files changed, 61 insertions(+), 8 deletions(-) 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: + +``` + +