aboutsummaryrefslogtreecommitdiff
path: root/src/models.rs
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-03-07 09:04:00 +0300
committerA Farzat <a@farzat.xyz>2026-03-07 09:07:38 +0300
commitc98b360d611c37315c9c5330089a1d91dbb2021c (patch)
treed190740bb24df7aaafe09e914aa2f1314dd70988 /src/models.rs
parent7e24d0cd5b671d06383466baf89c340023421d86 (diff)
downloadoreilly-epub-c98b360d611c37315c9c5330089a1d91dbb2021c.tar.gz
oreilly-epub-c98b360d611c37315c9c5330089a1d91dbb2021c.zip
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.
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs2
1 files changed, 2 insertions, 0 deletions
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,
}