From 75fc35ddb26670eaf71f3a3dbf6421eafedcff12 Mon Sep 17 00:00:00 2001 From: David Fontaneda Date: Wed, 23 Oct 2024 15:42:51 +0200 Subject: [PATCH] Fixed error removing extra pages --- gulagcleaner_python/Cargo.toml | 2 +- gulagcleaner_python/python/gulagcleaner/command_line.py | 2 +- gulagcleaner_rs/Cargo.toml | 2 +- gulagcleaner_rs/src/models/page_type.rs | 2 +- gulagcleaner_wasm/Cargo.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gulagcleaner_python/Cargo.toml b/gulagcleaner_python/Cargo.toml index d9d0d3d..503069c 100644 --- a/gulagcleaner_python/Cargo.toml +++ b/gulagcleaner_python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gulagcleaner_python" -version = "0.15.0" +version = "0.15.1" edition = "2021" authors = ["YM162 "] description = "Ad removal tool for PDFs." diff --git a/gulagcleaner_python/python/gulagcleaner/command_line.py b/gulagcleaner_python/python/gulagcleaner/command_line.py index 591724d..60036f5 100644 --- a/gulagcleaner_python/python/gulagcleaner/command_line.py +++ b/gulagcleaner_python/python/gulagcleaner/command_line.py @@ -61,7 +61,7 @@ def main(): # Check for the -v argument if arguments["version"]: - print("Current version: 0.15.0") + print("Current version: 0.15.1") return # Get the pdf_path argument diff --git a/gulagcleaner_rs/Cargo.toml b/gulagcleaner_rs/Cargo.toml index 795fcbb..428e9c5 100644 --- a/gulagcleaner_rs/Cargo.toml +++ b/gulagcleaner_rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gulagcleaner_rs" -version = "0.15.0" +version = "0.15.1" edition = "2021" authors = ["YM162 "] description = "Ad removal tool for PDFs." diff --git a/gulagcleaner_rs/src/models/page_type.rs b/gulagcleaner_rs/src/models/page_type.rs index 47c4989..5f83f7a 100644 --- a/gulagcleaner_rs/src/models/page_type.rs +++ b/gulagcleaner_rs/src/models/page_type.rs @@ -136,7 +136,7 @@ impl PageType { if bannercounter == 1 { return Ok(PageType::Watermark) } - if bannercounter == 2 { + if bannercounter > 1 { return Ok(PageType::BannerAds) } if hasfooter { diff --git a/gulagcleaner_wasm/Cargo.toml b/gulagcleaner_wasm/Cargo.toml index 69dde44..764dbbd 100644 --- a/gulagcleaner_wasm/Cargo.toml +++ b/gulagcleaner_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gulagcleaner_wasm" -version = "0.15.0" +version = "0.15.1" edition = "2021" authors = ["YM162 "] description = "Ad removal tool for PDFs."