From c98b360d611c37315c9c5330089a1d91dbb2021c Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sat, 7 Mar 2026 09:04:00 +0300 Subject: Fix chapter contents to proper xml Change resource URLs using attribute matching (only img src for now, should add more later). Add respective stylesheets to chapters. --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 80f81e4..00e38a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ mod epub; mod http_client; mod models; +mod xml; use std::collections::HashMap; use std::path::Path; @@ -119,7 +120,7 @@ async fn main() -> Result<()> { download_all_files(&client, &file_entries, dest_root).await?; let epub_path = format!("Books/{0}/{0}.epub", args.bookid); let epub_path = Path::new(&epub_path); - create_epub_archive(dest_root, epub_path, &file_entries, &chapters)?; + create_epub_archive(&epub_data, dest_root, epub_path, &file_entries, &chapters)?; Ok(()) } -- cgit v1.2.3-70-g09d2