summaryrefslogtreecommitdiffstats
path: root/schema/schema.go
diff options
context:
space:
mode:
Diffstat (limited to 'schema/schema.go')
-rw-r--r--schema/schema.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/schema/schema.go b/schema/schema.go
index 7ef5c99..4cc79af 100644
--- a/schema/schema.go
+++ b/schema/schema.go
@@ -88,3 +88,7 @@ type PodcastFeed struct {
func (e Entry) TitleContains(contains string) bool {
return strings.Contains(strings.ToLower(e.Title), strings.ToLower(contains))
}
+
+func (e Entry) DescContains(contains string) bool {
+ return strings.Contains(strings.ToLower(e.Desc), strings.ToLower(contains))
+}