Correct url of the feed in channel
This commit is contained in:
parent
40fe0d6cbd
commit
f5449ee6c6
@ -27,6 +27,7 @@ use DateTime::Format::DateParse;
|
|||||||
# Configuration variables
|
# Configuration variables
|
||||||
my $url = "https://www.april.org/taxonomy_all_items/term/1917/all/feed";
|
my $url = "https://www.april.org/taxonomy_all_items/term/1917/all/feed";
|
||||||
my $filename = "/usr/share/drupal6/lav.xml";
|
my $filename = "/usr/share/drupal6/lav.xml";
|
||||||
|
my $urlfeed = "https://april.org/lav.xml";
|
||||||
|
|
||||||
# Build RSS object
|
# Build RSS object
|
||||||
my $rss = XML::RSS->new;
|
my $rss = XML::RSS->new;
|
||||||
@ -45,6 +46,8 @@ $rss->{channel}->{description} = "<p>Chaque mardi de 15 h 30 à 17 h 00, l'April
|
|||||||
# Add image
|
# Add image
|
||||||
$rss->image(title=>'Libre à vous !', url=>'https://april.org/files/libre-a-vous/banniere-radio-april-rss-200.png', link=>'https://april.org/libre-a-vous');
|
$rss->image(title=>'Libre à vous !', url=>'https://april.org/files/libre-a-vous/banniere-radio-april-rss-200.png', link=>'https://april.org/libre-a-vous');
|
||||||
|
|
||||||
|
$rss->{channel}->{link} = $urlfeed;
|
||||||
|
|
||||||
# Parse items
|
# Parse items
|
||||||
my @new_items;
|
my @new_items;
|
||||||
foreach my $item (@{$rss->{'items'}}) {
|
foreach my $item (@{$rss->{'items'}}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user