diff options
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/Entry.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index cccfac5e1..441730af2 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -814,6 +814,22 @@ HTML; if ($url === '' || $feed === null || $feed->pathEntries() === '') { return ''; } + if (!empty($feed->attributeArray('path_entries_condition'))) { + $found = false; + foreach ($feed->attributeArray('path_entries_condition') as $condition) { + if (trim($condition) === '') { + continue; + } + $booleanSearch = new FreshRSS_BooleanSearch($condition); + if ($this->matches($booleanSearch)) { + $found = true; + break; + } + } + if (!$found) { + return ''; + } + } $cachePath = $feed->cacheFilename($url . '#' . $feed->pathEntries()); $html = httpGet($url, $cachePath, 'html', $feed->attributes(), $feed->curlOptions()); |
