- my @urls=XML::Feed->find_feeds($feed->{feedurl});
- if (! @urls) {
- $feed->{message}="could not find feed at ".$feed->{feedurl};
- IkiWiki::debug($feed->{message});
- next FEED;
- }
- foreach my $url (@urls) {
- my $f=eval{XML::Feed->parse(URI->new($url))};
- if ($@) {
- $feed->{message}="feed crashed XML::Feed! $@";
- IkiWiki::debug($feed->{message});
- next FEED;
- }
- if (! $f) {
- $feed->{message}=XML::Feed->errstr;
+ if (! length $feed->{feedurl}) {
+ my @urls=XML::Feed->find_feeds($feed->{url});
+ if (! @urls) {
+ $feed->{message}="could not find feed at ".$feed->{feedurl};