riesa-efau-kalender: use only 1st line for name

This commit is contained in:
Astro 2021-07-18 02:56:35 +02:00
parent f3ae7499d6
commit 16962f087f
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ url = "https://riesa-efau.de/index.php?id=87"
doc = Nokogiri::HTML URI.open(url)
doc.css(".tx-cal-controller .vevent").each do |vevent|
ev = Event::new
ev.name = vevent.css("h3").text
ev.name = vevent.css("h3").children[0].text
ev.location = vevent.css(".location").text
.sub(/ *\.\.\.[^\.]*$/, "")
ev.date = vevent.css(".datum").text