summaryrefslogtreecommitdiffstats
path: root/parsers/logbooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r--parsers/logbooks.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index ae6c75f..be9fccc 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -453,9 +453,13 @@ def parser_html(year, expedition, txt, seq=""):
tid = reset_trip_id(ldate)
triptitles = triptitle.split(" - ")
if len(triptitles) >= 2:
- place = triptitles[0]
+ place = triptitles[0].split()[0]
else:
- place = "Unknown"
+ p = triptitle.split()
+ if len(p) >= 2:
+ place = p[0]
+ else:
+ place = triptitle
# tripcontent = re.sub(r"</p>", "", triptext)
# tripcontent = re.sub(r"<p>", "<br /><br />", tripcontent).strip()
tripcontent = triptext.strip()