Cleaned up a bit the downloader moduel and added some unit tests.

This commit is contained in:
Jordan Petridis
2017-11-08 20:22:07 +02:00
parent 4e6ed416ee
commit 8c5cdf75a7
7 changed files with 96 additions and 84 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ fn create_flowbox_child(db: &Database, pd: &Podcast) -> gtk::FlowBoxChild {
pd_title.set_text(pd.title());
let cover = get_pixbuf_from_path(pd.image_uri(), pd.title());
let cover = get_pixbuf_from_path(pd.title(), pd.image_uri());
if let Some(img) = cover {
pd_cover.set_from_pixbuf(&img);
};