code cleanup

This commit is contained in:
Martin Brodbeck 2021-02-11 22:00:49 +01:00
parent 90c2d34c03
commit 247591707d
2 changed files with 0 additions and 7 deletions

View file

@ -226,7 +226,6 @@ pub fn get_epub_metadata(filename: &str) -> Option<EpubMetadata> {
genre_found = true;
}
Ok(Event::Text(ref e)) if genre_found => {
//epub_meta.genre = String::from_utf8(e.to_vec()).unwrap();
epub_meta.genre = e.unescape_and_decode(&reader).unwrap();
genre_found = false;
}
@ -235,8 +234,6 @@ pub fn get_epub_metadata(filename: &str) -> Option<EpubMetadata> {
}
}
//println!("{:?}", &xml_authors);
epub_meta.authors = xml_authors
.into_iter()
.filter(|&(_, ref xml_author)| &xml_author.role == "aut" && &xml_author.name.len() > &0)

View file

@ -151,8 +151,6 @@ fn fix_db_entries(tx: &Transaction, book_entries: &Vec<BookEntry>) -> Statistics
)
.unwrap();
stat.authors_fixed = stat.authors_fixed + 1;
println!("{}", firstauthors.join(" & "));
}
// Fix author names…
@ -169,8 +167,6 @@ fn fix_db_entries(tx: &Transaction, book_entries: &Vec<BookEntry>) -> Statistics
)
.unwrap();
stat.authors_fixed = stat.authors_fixed + 1;
println!("{}", authornames.join(" & "));
}
if entry.genre.is_empty() && epub_metadata.genre.len() > 0 {