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/models.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/models.rs') diff --git a/src/models.rs b/src/models.rs index 704ad84..991224c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -18,12 +18,14 @@ pub struct EpubResponse { pub files: String, // This is a URL to the resource files pub spine: String, // This is a URL to the spine list pub table_of_contents: String, // This is a URL to the table of contents + pub language: String, } /// Model for chapters API. #[derive(Debug, Deserialize)] pub struct Chapter { pub ourn: String, + pub title: String, pub is_skippable: bool, pub related_assets: ChapRelAssets, } -- cgit v1.2.3-70-g09d2