Skip to content

Commit

Permalink
Merge pull request #1529 from stakovicz/fix-meetup-scrapper-event-url
Browse files Browse the repository at this point in the history
Fix Meetup scrapper Event URL
  • Loading branch information
stakovicz authored Aug 27, 2024
2 parents 0214c82 + dcaa11a commit be8b56b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sources/AppBundle/Indexation/Meetups/MeetupScraper.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public function getEvents()
}

$eventUrl = $event->getAttribute('href');
if (preg_match('/\/(\d+)\/$/', $eventUrl, $matches)) {

if (preg_match('/\/events\/(\d+)\//', $eventUrl, $matches)) {
$id = (int) $matches[1];
} else {
throw new Exception(sprintf('Pas d\'id pour cet évent de l\'antenne %s', $antenne));
Expand Down

0 comments on commit be8b56b

Please sign in to comment.