From 0107b351441c6f7695aac805eea015164d33299f Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Fri, 2 May 2025 20:30:59 +0200 Subject: [PATCH] ignore hash mismatch for .html files --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 87a909a..9411c5a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -301,6 +301,10 @@ async fn update_dir( local_hash = file_path.get_blake3().unwrap().to_lowercase(); let remote = file.blake3.to_lowercase(); if local_hash != remote { + if file_path.ends_with(".html") { + println_info!("Ignoring mismatched hash for {}", file_path.cute_path()); + continue; + } println_error!("Downloaded file hash does not match remote!\nRemote {remote}, local {local_hash}, {}\nIf this issue persists please try again in 15 minutes.", file_path.cute_path()); println!("Retry download? (Y/n)"); let input = misc::stdin().to_ascii_lowercase();