Updated dependancies.
This commit is contained in:
parent
f7fb991b9c
commit
5ef27d1072
1784
Cargo.lock
generated
Normal file
1784
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user