summaryrefslogtreecommitdiffstats
path: root/feed/feed.go
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-11-26 07:59:01 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-11-26 07:59:01 -0500
commitda88db4a6b8783cbe5f52b5e9cc1ae6a270b2401 (patch)
treed013f917eb8b27ba580c37ea3ae5c2c9b62d2506 /feed/feed.go
parent3d778ffcc315dca48ea959668528c05db7345eaf (diff)
feed: update `Feed.unmarshal`
Add handling to unmarshal 'podcast' feeds.
Diffstat (limited to 'feed/feed.go')
-rw-r--r--feed/feed.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/feed/feed.go b/feed/feed.go
index 3a3fa30..31159cc 100644
--- a/feed/feed.go
+++ b/feed/feed.go
@@ -242,6 +242,12 @@ func (feed *Feed) unmarshal(bs []byte) error {
return err
}
return nil
+ case feed.Schema == "podcast":
+ feed.Entries, err = podcastUnmarshal(bs)
+ if err != nil {
+ return err
+ }
+ return nil
}
return fmt.Errorf("schema of feed '%s' unknown", feed.Id)
}