From e6a16dbe55ac0b2a566ab916a7e0a28ce325e47e Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Sat, 30 Mar 2019 23:53:09 +0100 Subject: [PATCH] For wordpress skip all images provided by a plugin. --- feediverse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/feediverse.py b/feediverse.py index b6f86bd..a8e4819 100755 --- a/feediverse.py +++ b/feediverse.py @@ -123,6 +123,7 @@ def collect_images(entry, generator=None): e["href"] not in urls): urls.append(e["href"]) if generator == "wordpress": + urls = (u for u in urls if not "/wp-content/plugins/" in u) # Work around a wordpress bug: If the filename contains an # umlaut, this will not be encoded using %-escape, as the # standard demands. This will break encoding in http.request()