Updated dependancies.

This commit is contained in:
Jordan Petridis 2017-10-16 05:03:48 +03:00
parent f7fb991b9c
commit 5ef27d1072
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
2 changed files with 1788 additions and 1 deletions

1784
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -4,12 +4,15 @@ use rfc822_sanitizer::parse_from_rfc2822_with_fallback;
use models;
use errors::*;
// TODO: look into how bad-utf8 is handled in rss crate,
// and figure if there is a need for checking before parsing.
pub fn parse_podcast(chan: &Channel, source_id: i32) -> Result<models::NewPodcast> {
let title = chan.title().to_owned();
let link = chan.link().to_owned();
let description = chan.description().to_owned();
// Some feeds miss baseurl and/or http://
// TODO: Sanitize the url
// TODO: Sanitize the url,
// could also be reuse to sanitize the new-url gui entrybox.
let image_uri = chan.image().map(|foo| foo.url().to_owned());
let foo = models::NewPodcast {