From dc57dd6437e36fe3bca44cda623879f2b701371d Mon Sep 17 00:00:00 2001 From: A Farzat Date: Tue, 3 Mar 2026 12:52:18 +0300 Subject: Revert "Add a function to write mimetype" This reverts commit 6aad662ec59a3974cbca6c423c1e08e8bc5e90f6. There is no need to write it out to epub_root as it needs to be manually written to the zip file later on anyway. Not including it saves us the trouble of avoiding it when walking epub_root later. --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 6376315..db1fdd4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ mod models; use std::collections::HashMap; use std::path::Path; -use crate::epub::{download_all_files, write_container_xml, write_mimetype}; +use crate::epub::{download_all_files, write_container_xml}; use crate::http_client::build_authenticated_client; use crate::models::{Chapter, EpubResponse, FileEntry, Paginated, SpineItem, TocNode}; use anyhow::{Context, Result, ensure}; @@ -121,7 +121,6 @@ async fn main() -> Result<()> { let dest_root = format!("Books/{}/epub_root", args.bookid); let dest_root = Path::new(&dest_root); download_all_files(&client, &file_entries, dest_root).await?; - write_mimetype(dest_root).await?; write_container_xml(dest_root, &opf_entry.full_path).await?; // Sanity check: Every entry in spine exists in chapters. -- cgit v1.2.3-70-g09d2