summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-07-19 11:55:44 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2024-07-19 11:55:44 +0200
commit210174b901d2c0f78952113690a03031ec82886f (patch)
tree11722186eabc293babcf9c04029abe4762d0c149 /parsers
parentc27a4f0ddcb02e8b339dac438e6d021e23c7105d (diff)
downloadtroggle-210174b901d2c0f78952113690a03031ec82886f.tar.gz
troggle-210174b901d2c0f78952113690a03031ec82886f.tar.bz2
troggle-210174b901d2c0f78952113690a03031ec82886f.zip
fix photos link to expofiles in logbooks
Diffstat (limited to 'parsers')
-rw-r--r--parsers/logbooks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index b94f597..52c88b4 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -239,6 +239,9 @@ def tidy_trip_image_urls(text, date):
text = text.replace(f' src="/years/{y}//years/{y}/', f' src="/years/{y}/')
text = text.replace(f" src='/years/{y}//years/{y}/", f" src='/years/{y}/")
+ text = text.replace(f' src="/years/{y}/expofiles/', f' src="/expofiles/')
+ text = text.replace(f" src='/years/{y}/expofiles/", f" src='/expofiles/")
+
text = text.replace("\t", "")
text = text.replace("\n\n\n", "\n\n")
return text