Added date label into EpisodeWidget.

This commit is contained in:
Jordan Petridis
2017-12-14 18:03:37 +02:00
parent e3b540170a
commit 0ac78fcff1
6 changed files with 86 additions and 22 deletions
+1
View File
@@ -33,6 +33,7 @@ pub(crate) fn new_podcast(chan: &Channel, source_id: i32) -> NewPodcast {
}
/// Parses an `rss::Item` into a `NewEpisode` Struct.
// TODO: parse itunes duration extension.
pub(crate) fn new_episode(item: &Item, parent_id: i32) -> Result<NewEpisode> {
if item.title().is_none() {
bail!("No title specified for the item.")