Skip to content

Commit

Permalink
Do not recognize external chapters as real
Browse files Browse the repository at this point in the history
  • Loading branch information
leotaku committed Aug 17, 2022
1 parent 7fe4d2a commit 7e7af91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mangadex/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ func convertManga(b *api.Manga, authors, artists *api.AuthorList) MangaInfo {
func convertChapters(ca []api.ChapterData, groupMap map[string]api.GroupData) ChapterList {
sorted := make(ChapterList, 0)
for _, info := range ca {
// Chapters with external URLs do not live on MangaDex
if info.Attributes.ExternalURL != "" {
continue
}

lang, _ := language.Parse(info.Attributes.TranslatedLanguage)
groups := make([]string, 0)
for _, id := range info.Relationships.Group {
Expand Down

0 comments on commit 7e7af91

Please sign in to comment.