Do not capture podcasts when not available yet

This commit is contained in:
gibus 2019-07-10 12:27:46 +02:00
parent 5107afe309
commit 88b1b647ec

View File

@ -63,7 +63,7 @@ foreach my $item (@{$rss->{'items'}}) {
}
# Add items for each topic
if ($item->{description} =~ /Podcasts des différents sujets abordés.+?<ul>(.+?)<\/ul>/s) {
if ($item->{description} =~ /Podcasts des différents sujets abordés(?:<\/strong><\/p>|<\/h2>)?\s*<ul>(.+?)<\/ul>/s) {
# Extract topics
my $topics = $1;