aboutsummaryrefslogtreecommitdiff
path: root/app/Services/ImportService.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Services/ImportService.php')
-rw-r--r--app/Services/ImportService.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php
index 51ab106ca..b1cd7855a 100644
--- a/app/Services/ImportService.php
+++ b/app/Services/ImportService.php
@@ -180,8 +180,15 @@ class FreshRSS_Import_Service {
$feed->_pathEntries(Minz_Helper::htmlspecialchars_utf8($feed_elt['frss:cssFullContent']));
}
- if (isset($feed_elt['frss:cssFullContentFilter'])) {
- $feed->_attribute('path_entries_filter', $feed_elt['frss:cssFullContentFilter']);
+ if (isset($feed_elt['frss:cssFullContentConditions'])) {
+ $feed->_attribute(
+ 'path_entries_conditions',
+ preg_split('/\R/u', $feed_elt['frss:cssFullContentConditions']) ?: []
+ );
+ }
+
+ if (isset($feed_elt['frss:cssContentFilter']) || isset($feed_elt['frss:cssFullContentFilter'])) {
+ $feed->_attribute('path_entries_filter', $feed_elt['frss:cssContentFilter'] ?? $feed_elt['frss:cssFullContentFilter']);
}
if (isset($feed_elt['frss:filtersActionRead'])) {