diff --git a/CHANGELOG.md b/CHANGELOG.md index dcb33958..7cb7b615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). +## 4.0.4 + +- Fix manga tags and genres being the same inside ComicInfo.xml #133 +- Fill `DescriptionText` field for *series.json* + ## 4.0.3 - Add `exact` manga selector for inline mode #131 diff --git a/constant/meta.go b/constant/meta.go index f2c261cb..233a338e 100644 --- a/constant/meta.go +++ b/constant/meta.go @@ -2,6 +2,6 @@ package constant const ( Mangal = "mangal" - Version = "4.0.3" + Version = "4.0.4" UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36" ) diff --git a/source/chapter.go b/source/chapter.go index 41390d0e..2dc3a816 100644 --- a/source/chapter.go +++ b/source/chapter.go @@ -189,7 +189,7 @@ func (c *Chapter) ComicInfo() *ComicInfo { Series: c.Manga.Name, Number: int(c.Index), Web: c.URL, - Genre: strings.Join(c.Manga.Metadata.Tags, ","), + Genre: strings.Join(c.Manga.Metadata.Genres, ","), PageCount: len(c.Pages), Summary: c.Manga.Metadata.Summary, Count: c.Manga.Metadata.Chapters, diff --git a/source/manga.go b/source/manga.go index 3169cd66..d3e4a501 100644 --- a/source/manga.go +++ b/source/manga.go @@ -340,6 +340,7 @@ func (m *Manga) SeriesJSON() *SeriesJSON { seriesJSON.Metadata.Type = "comicSeries" seriesJSON.Metadata.Name = m.Name seriesJSON.Metadata.DescriptionFormatted = m.Metadata.Summary + seriesJSON.Metadata.DescriptionText = m.Metadata.Summary seriesJSON.Metadata.Status = status seriesJSON.Metadata.Year = m.Metadata.StartDate.Year seriesJSON.Metadata.ComicImage = m.Metadata.Cover.ExtraLarge