Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
milesoc committed Jun 18, 2024
1 parent 50b3dca commit 21937e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/MangaDex/MangaDex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export class MangaDex implements ChapterProviding, SearchResultsProviding, HomeP
throw new Error(`Failed to parse json results for section ${section.section.title}`)
}

section.section.items = await this.appendCoverArt(parseChapterListToManga(json.data, [], this), getHomepageThumbnail)
section.section.items = await this.appendCoverArt(parseChapterListToManga(json.data, this), getHomepageThumbnail)

sectionCallback(section.section)
} else {
Expand Down
6 changes: 1 addition & 5 deletions src/MangaDex/MangaDexParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ export const parseMangaList = async (object: MangaItem[], source: any, thumbnail
return results
}

export const parseChapterListToManga = async (chapters: ChapterItem[], alreadyFound: string[], source: any): Promise<PartialSourceManga[]> => {
export const parseChapterListToManga = async (chapters: ChapterItem[], source: any): Promise<PartialSourceManga[]> => {
const results: PartialSourceManga[] = []
const discoveredManga: Set<string> = new Set<string>()

// for (const foundId of alreadyFound) {
// discoveredManga.add(foundId)
// }

for (const chapter of chapters) {
const mangaRelationship: Relationship = chapter.relationships.filter((x) => x.type == 'manga')[0] as Relationship

Expand Down

0 comments on commit 21937e1

Please sign in to comment.