From 399e49a58e5d3492b6d61516505944002dc3109c Mon Sep 17 00:00:00 2001 From: Sandra Date: Wed, 1 Apr 2020 19:56:46 +0200 Subject: [PATCH] href --- dumpwiki.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dumpwiki.py b/dumpwiki.py index 4635c2d..91ea727 100644 --- a/dumpwiki.py +++ b/dumpwiki.py @@ -50,10 +50,10 @@ def rewritelinks (html): if "external" in linkclass: # leave external links alone continue - print ("LINK", href) + # print ("LINK", href) if href.startswith("/sandbox/itchwiki/index.php/"): - new_href = - # a.attrib['href'] = new_href + new_href = filenameforlink(href) + a.attrib['href'] = new_href html = ET.tostring(t, method="html", encoding="unicode") return html