frfac: loosen episode link regex
Variation in link urls had me miss episodes. They changed from... http://www.rfi.fr/fr/podcasts/20201117-journal-en-fran%C3%A7ais-facile-17112020-20h00-gmt ... to ... http://www.rfi.fr/fr/podcasts/journal-en-fran%C3%A7ais-facile/20201123-journal-en-fran%C3%A7ais-facile-23-11-2020-20h00-gmt
This commit is contained in:
parent
9fdc9e5eb1
commit
e4d88b439c
2
frfac.in
2
frfac.in
@ -27,7 +27,7 @@ my $LX = HTML::LinkExtractor->new(undef, $BASE_URI);
|
||||
$LX->parse(\$epis_list_html);
|
||||
for my $link (@{$LX->links}) {
|
||||
next unless $link->{href};
|
||||
if ($link->{href} =~ /facile-\d+-\d+h\d+-gmt\s*$/) {
|
||||
if ($link->{href} =~ /facile.*\d+h\d+-gmt\s*$/) {
|
||||
push @episode_links, $link->{href};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user