From 53de3f364816bfd5b24d0ca4ec194d810a90d41e Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 9 Feb 2013 07:42:57 -0600 Subject: [PATCH] scrub away watermarks in another situation --- modules/papers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/papers.py b/modules/papers.py index 22b88bd..99dd978 100644 --- a/modules/papers.py +++ b/modules/papers.py @@ -100,6 +100,9 @@ def download(phenny, input, verbose=True): data = response.content + if "pdf" in response.headers["content-type"]: + data = pdfparanoia.scrub(data) + # grr.. title = title.encode("ascii", "ignore")