Disable invalid feeds on refresh (not found, domain inexistent...)
This commit is contained in:
parent
3f5cbcb3c9
commit
75601d173c
@ -12,6 +12,7 @@ use PicoFeed\Serialization\Import;
|
|||||||
use PicoFeed\Reader\Reader;
|
use PicoFeed\Reader\Reader;
|
||||||
use PicoFeed\Reader\Favicon;
|
use PicoFeed\Reader\Favicon;
|
||||||
use PicoFeed\PicoFeedException;
|
use PicoFeed\PicoFeedException;
|
||||||
|
use PicoFeed\Client\InvalidUrlException;
|
||||||
|
|
||||||
const LIMIT_ALL = -1;
|
const LIMIT_ALL = -1;
|
||||||
|
|
||||||
@ -263,7 +264,11 @@ function refresh($feed_id)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (PicoFeedException $e) {}
|
catch (InvalidUrlException $e) {
|
||||||
|
disable($feed_id);
|
||||||
|
}
|
||||||
|
catch (PicoFeedException $e) {
|
||||||
|
}
|
||||||
|
|
||||||
update_parsing_error($feed_id, 1);
|
update_parsing_error($feed_id, 1);
|
||||||
Config\write_debug();
|
Config\write_debug();
|
||||||
|
Loading…
Reference in New Issue
Block a user