Visual tweaks, and other minor stuff.

Added margins bottom margins on EpisodesView and ShowWidget.
Added some comment's to the code.
Silenced needless_pass_by_value clippy warning.
Updated TODO.md.
This commit is contained in:
Jordan Petridis
2017-12-23 16:56:03 +02:00
parent 30970c8dfb
commit e7185d2cd3
6 changed files with 20 additions and 18 deletions
+2
View File
@@ -125,10 +125,12 @@ pub fn get_episode(ep: &mut EpisodeWidgetQuery, download_folder: &str) -> Result
// If download succedes set episode local_uri to dlpath.
ep.set_local_uri(Some(&path));
// Over-write episode lenght
let size = fs::metadata(path);
if let Ok(s) = size {
ep.set_length(Some(s.len() as i32))
};
ep.save()?;
Ok(())
} else {