Overwrite output of enclosures to have attributes in fixed order
This commit is contained in:
parent
92a2c299df
commit
14403676c7
@ -24,6 +24,23 @@ use XML::RSS;
|
|||||||
use DateTime;
|
use DateTime;
|
||||||
use DateTime::Format::DateParse;
|
use DateTime::Format::DateParse;
|
||||||
|
|
||||||
|
{
|
||||||
|
# Overwrite output of enclosures to have attributes in fixed order
|
||||||
|
no warnings qw(redefine);
|
||||||
|
sub XML::RSS::Private::Output::Base::_out_single_item_enclosure {
|
||||||
|
my ($self, $item, $enc) = @_;
|
||||||
|
|
||||||
|
return
|
||||||
|
$self->_out(
|
||||||
|
"<enclosure " .
|
||||||
|
join(' ',
|
||||||
|
map { "$_=\"" . $self->_encode($enc->{$_}) . '"' } sort keys(%$enc)
|
||||||
|
) .
|
||||||
|
" />\n"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Configuration variables
|
# Configuration variables
|
||||||
my $url = "https://www.april.org/taxonomy_all_items/term/1918/all";
|
my $url = "https://www.april.org/taxonomy_all_items/term/1918/all";
|
||||||
my $urlfeed = "https://www.april.org/taxonomy_all_items/term/1918/all/feed";
|
my $urlfeed = "https://www.april.org/taxonomy_all_items/term/1918/all/feed";
|
||||||
|
Loading…
Reference in New Issue
Block a user