Skip to content

Commit

Permalink
fix(libgroup): display date of upload chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
vlapsk1y committed Nov 13, 2024
1 parent 304df80 commit 3df0925
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/rust/multi.libgroup/template/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,14 @@ pub fn parse_chapter_list(js: ObjectRef, id: &str, domain: &str) -> Result<Vec<C
String::new(),
chapter_object.get("number").as_string()?.read(),
)[0],
date_updated: -1.0,
date_updated: chapter_object
.get("branches")
.as_array()?
.get(0)
.as_object()?
.get("created_at")
.as_string()?
.as_date("yyyy-MM-dd'T'HH:mm:ss.SSS'Z", Some("en_US"), None),
scanlator: chapter_object
.get("branches")
.as_array()?
Expand Down

0 comments on commit 3df0925

Please sign in to comment.