There was an error while loading. Please reload this page.
1 parent ecb96e7 commit fc13e00Copy full SHA for fc13e00
1 file changed
crates/podfetch-web/src/services/download/service.rs
@@ -602,8 +602,7 @@ impl DownloadService {
602
}
603
};
604
605
- if let 0 = tag.pictures().count() {
606
- let mut image_file = File::open(&paths.image_filename).unwrap();
+ if let 0 = tag.pictures().count() && let Ok(mut image_file) = File::open(&paths.image_filename) {
607
let mut image_data = Vec::new();
608
let _ = image_file.read_to_end(&mut image_data);
609
tag.add_frame(id3::frame::Picture {
0 commit comments