fixed published_date parsing

This commit is contained in:
2025-09-10 10:22:56 +02:00
parent 8683b5967e
commit fdd6c3c957

2
api.go
View File

@ -175,7 +175,7 @@ func (api *Api) getChapterEntriesByPageIndex(novelID NovelID, pageIndex int) ([]
groupID := path.Base(s.Find("td:nth-child(2) a").AttrOr("href", ""))
link := "https:" + td3.AttrOr("href", "")
date, err := time.Parse("01/02/2006", strings.TrimSpace(s.Find("td:first-child").Text()))
date, err := time.Parse("02/01/2006", strings.TrimSpace(s.Find("td:first-child").Text()))
if err != nil {
adverr.Println(ErrApiElementNotFound.Wrap(err, "td:first-child"))
return