From 3d98bf12f372527f950ecffa01d161179838d0dd Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 20 Oct 2017 00:59:58 +0300 Subject: [PATCH] Added Feed cover extraction from itunes extension. --- hammond-data/src/feedparser.rs | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/hammond-data/src/feedparser.rs b/hammond-data/src/feedparser.rs index 1f84748..7d9dc3a 100644 --- a/hammond-data/src/feedparser.rs +++ b/hammond-data/src/feedparser.rs @@ -6,6 +6,7 @@ use errors::*; // TODO: look into how bad-utf8 is handled in rss crate, // and figure if there is a need for checking before parsing. +// TODO: Extend the support for parsing itunes extensions pub fn parse_podcast(chan: &Channel, source_id: i32) -> Result { let title = chan.title().trim().to_owned(); let link = chan.link().to_owned(); @@ -13,7 +14,11 @@ pub fn parse_podcast(chan: &Channel, source_id: i32) -> Result