Models: Rename Podcat Models to Show to better match the UI code.

This commit is contained in:
Jordan Petridis
2018-06-30 22:47:58 +03:00
parent 400c0f35f0
commit 2d66ba918a
14 changed files with 116 additions and 116 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ use std::path::Path;
use std::sync::{Arc, Mutex};
use hammond_data::xdg_dirs::HAMMOND_CACHE;
use hammond_data::{EpisodeWidgetQuery, PodcastCoverQuery, Save};
use hammond_data::{EpisodeWidgetQuery, Save, ShowCoverQuery};
// use failure::Error;
use errors::DownloadError;
@@ -196,7 +196,7 @@ pub fn get_episode(
Ok(())
}
pub fn cache_image(pd: &PodcastCoverQuery) -> Result<String, DownloadError> {
pub fn cache_image(pd: &ShowCoverQuery) -> Result<String, DownloadError> {
let url = pd
.image_uri()
.ok_or_else(|| DownloadError::NoImageLocation)?