Skip to content

Commit

Permalink
fix(metadata): tags and genres being the same inside ComicInfo.xml #133
Browse files Browse the repository at this point in the history
  • Loading branch information
metafates committed Nov 11, 2022
1 parent ad9d75b commit d633454
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion constant/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
2 changes: 1 addition & 1 deletion source/chapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions source/manga.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d633454

Please sign in to comment.