Skip to content

Commit

Permalink
fix: small adjustment with the new website
Browse files Browse the repository at this point in the history
Signed-off-by: Sun Seng David TAN <[email protected]>
  • Loading branch information
sunix committed Oct 11, 2023
1 parent 1e63a65 commit e59a134
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void run() {
params.put("LOCATION_URL", page.getLocation());
params.put("CALENDAR_URL", page.generateGcalLink());
params.put("DATETIME", page.getDateTime());
params.put("WEBSITE_URL", "https://www.parisjug.org/xwiki/bin/view/Main/WebHome");
params.put("WEBSITE_URL", "https://www.parisjug.org/");
params.put("CONTENT", page.getDetails());
params.put("PART1", page.getPart1());
params.put("PART2", page.getPart2());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class HtmlEventPage implements EventPage {

@Override
public String getTitle() {
Elements titleElements = doc.select("#title");
Elements titleElements = doc.select(".post__title");
if (titleElements.isEmpty()) {
throw new EventPageCheckException(
"The page should contain an element with the id \"title\". For instance: <div id=\"title\">Quarkus World Tour</div>.");
Expand All @@ -43,7 +43,11 @@ protected void loadFromUrl(String url) {

@Override
public String getDetails() {
return doc.select("#details").first().html().replaceAll("href=\"/", "href=\"https://www.parisjug.org/");
return getPart1() + getBuffet() + getPart2();
}

public String getBuffet() {
return doc.select("#buffet").first().html().replaceAll("href=\"/", "href=\"https://www.parisjug.org/");
}

@Override
Expand Down Expand Up @@ -99,11 +103,7 @@ ZonedDateTime parseDateTime(String datetimeInput) {
@Override
public String getLongTitle() {
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy'/'MM'/'dd");
String virtualOrInRealLife = "en présentiel";
if (isVirtual()) {
virtualOrInRealLife = "Virtuelle";
}
return "Paris JUG - Soirée " + virtualOrInRealLife + " : " + getTitle() + " ("
return "Paris JUG - " + getTitle() + " ("
+ getEventZonedDateTime().format(dtf) + ")";
}

Expand Down

0 comments on commit e59a134

Please sign in to comment.