diff options
Diffstat (limited to 'model/src')
-rw-r--r-- | model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java index 3b35fe5bd..f537f33e2 100644 --- a/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java +++ b/model/src/main/java/de/danoeh/antennapod/model/feed/FeedFilter.java @@ -102,14 +102,22 @@ public class FeedFilter implements Serializable { return false; } - public String getIncludeFilter() { + public String getIncludeFilterRaw() { return includeFilter; } - public String getExcludeFilter() { + public String getExcludeFilterRaw() { return excludeFilter; } + public List<String> getIncludeFilter() { + return includeFilter == null ? new ArrayList<>() : parseTerms(includeFilter); + } + + public List<String> getExcludeFilter() { + return excludeFilter == null ? new ArrayList<>() : parseTerms(excludeFilter); + } + public int getMinimalDurationFilter() { return minimalDuration; } |