From c81b12ebcca60531debe0d757d7542bad7d9b5e6 Mon Sep 17 00:00:00 2001 From: YM162 Date: Sat, 5 Oct 2024 16:21:47 +0200 Subject: [PATCH] Change in substring annot search --- 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 bad01d7..f9aa87e 100644 --- a/gulagcleaner_python/Cargo.toml +++ b/gulagcleaner_python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gulagcleaner_python" -version = "0.14.6" +version = "0.14.7" 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 087a36b..25b5eea 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.14.6") + print("Current version: 0.14.7") return # Get the pdf_path argument diff --git a/gulagcleaner_rs/Cargo.toml b/gulagcleaner_rs/Cargo.toml index 2ef0e04..240f2fa 100644 --- a/gulagcleaner_rs/Cargo.toml +++ b/gulagcleaner_rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gulagcleaner_rs" -version = "0.14.6" +version = "0.14.7" 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 464022f..ff1140c 100644 --- a/gulagcleaner_rs/src/models/page_type.rs +++ b/gulagcleaner_rs/src/models/page_type.rs @@ -129,7 +129,7 @@ fn is_annots_wuolah(annot: &&&lopdf::Dictionary, doc: &lopdf::Document) -> bool Ok(x) => { match doc.dereference(x).unwrap().1.as_dict().unwrap().get(b"URI") { Ok(y) => { - doc.dereference(y).unwrap().1.as_string().unwrap().contains("wlh.es") + doc.dereference(y).unwrap().1.as_string().unwrap().contains("track.wlh.es") }, Err(_) => false, } diff --git a/gulagcleaner_wasm/Cargo.toml b/gulagcleaner_wasm/Cargo.toml index b237b9c..a7e7145 100644 --- a/gulagcleaner_wasm/Cargo.toml +++ b/gulagcleaner_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gulagcleaner_wasm" -version = "0.14.6" +version = "0.14.7" edition = "2021" authors = ["YM162 "] description = "Ad removal tool for PDFs."