Also fetch metadata from Adobe DRM encoded books

This commit is contained in:
Martin Brodbeck 2021-02-26 13:28:29 +01:00
parent 9baff090a8
commit a6594d4abc
3 changed files with 11 additions and 36 deletions

View file

@ -151,6 +151,10 @@ pub fn get_epub_metadata(filename: &str) -> Option<EpubMetadata> {
.unwrap()
.as_str();
xml_authors.insert(curr_id.clone(), XmlAut::new());
} else {
curr_id = "none".to_string() + xml_authors.len().to_string().as_str();
let entry = xml_authors.entry(curr_id.clone()).or_insert(XmlAut::new());
entry.role = "aut".to_string();
}
} else {
if let Some(file_as_val) = e