mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
Cope with newer rss format (so that, for example, we can now get the
headlines for mozillazine again).
This commit is contained in:
parent
5dd277a471
commit
29071a75d2
@ -845,8 +845,8 @@ sub rdfchannel {
|
||||
return if (!$output);
|
||||
|
||||
my $channelpart = "";
|
||||
if ($output =~ s@<channel>.*</channel>@@si) {
|
||||
$channelpart = $&;
|
||||
if ($output =~ m@<channel>(.*)</channel>@si) {
|
||||
$channelpart = $1;
|
||||
}
|
||||
$output =~ s@<image>.*</image>@@si;
|
||||
|
||||
@ -860,8 +860,8 @@ sub rdfchannel {
|
||||
}
|
||||
|
||||
my @list;
|
||||
while ($output =~ m@<title>(.+?)</title>@sig) {
|
||||
push(@list, $1);
|
||||
while ($output =~ m@<item>(.*?)<title>(.+?)</title>(.*?)</item>@sig) {
|
||||
push(@list, $2);
|
||||
}
|
||||
$rdf_items{$url} = \@list;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user