Update table feed items
This commit is contained in:
@@ -5,5 +5,6 @@ use rss::Channel;
|
||||
pub async fn get_feed(feed: &str) -> Result<Channel, Box<dyn Error>> {
|
||||
let content = reqwest::get(feed).await?.bytes().await?;
|
||||
let channel = Channel::read_from(&content[..])?;
|
||||
log::info!("{:?}", channel);
|
||||
Ok(channel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user