Disable invalid feeds on refresh (not found, domain inexistent...)

This commit is contained in:
Frédéric Guillot 2014-12-26 10:50:58 -05:00
parent 3f5cbcb3c9
commit 75601d173c

View File

@ -12,6 +12,7 @@ use PicoFeed\Serialization\Import;
use PicoFeed\Reader\Reader;
use PicoFeed\Reader\Favicon;
use PicoFeed\PicoFeedException;
use PicoFeed\Client\InvalidUrlException;
const LIMIT_ALL = -1;
@ -263,7 +264,11 @@ function refresh($feed_id)
return true;
}
catch (PicoFeedException $e) {}
catch (InvalidUrlException $e) {
disable($feed_id);
}
catch (PicoFeedException $e) {
}
update_parsing_error($feed_id, 1);
Config\write_debug();