summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Higgs <jhiggs@eml.cc>2022-10-08 12:44:01 +1100
committerFlorian Bruhin <me@the-compiler.org>2022-10-10 09:51:40 +0200
commite4d5238082272dfb12e5063dd7d7b88d85b34e6e (patch)
treeac5935b80607ed77b25f73d6d0ad87f460f1a785
parent2b906538a1c696b686e146a88c77279f2084cb3d (diff)
downloadqutebrowser-e4d5238082272dfb12e5063dd7d7b88d85b34e6e.tar.gz
qutebrowser-e4d5238082272dfb12e5063dd7d7b88d85b34e6e.zip
Send source URL to Breadability
Used to construct fully-qualified URLs from relative links. Without it you get broken images and links. (cherry picked from commit 5a880944352da582bd2e1bb3fcbbcc8999e9799e)
-rwxr-xr-xmisc/userscripts/readability2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/userscripts/readability b/misc/userscripts/readability
index a6a6f2d52..8a3280bee 100755
--- a/misc/userscripts/readability
+++ b/misc/userscripts/readability
@@ -48,7 +48,7 @@ with codecs.open(os.environ['QUTE_HTML'], 'r', 'utf-8') as source:
try:
from breadability.readable import Article as reader
- doc = reader(data)
+ doc = reader(data, os.environ['QUTE_URL'])
title = doc._original_document.title
content = HEADER % title + doc.readable + "</html>"
except ImportError: