Skip to content

Commit

Permalink
AsuraScans | Fix mistake from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Seyden committed Jul 28, 2024
1 parent a5b6101 commit c7a1039
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/AsuraScans/AsuraScans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const ASURASCANS_DOMAIN = 'https://asuracomic.net'
const ASURASCANS_API_DOMAIN = 'https://gg.asuracomic.net'

export const AsuraScansInfo: SourceInfo = {
version: '4.1.4',
version: '4.1.5',
name: 'AsuraScans',
description: 'Extension that pulls manga from AsuraScans',
author: 'Seyden',
Expand Down
5 changes: 3 additions & 2 deletions src/AsuraScans/AsuraScansParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ export class AsuraScansParser {
if (obj == '') {
throw new Error(`Failed to parse comic object for manga ${mangaId}`) // If null, throw error, else parse data to json.
}


const comicObj = JSON.parse(obj)

obj = extractMangaData(tempData, "chapters") ?? ''
if (obj == '') {
throw new Error(`Failed to parse chapters object for manga ${mangaId}`) // If null, throw error, else parse data to json.
}

const comicObj = JSON.parse(obj)
const chaptersObj = JSON.parse(obj)

const slug = comicObj.comic.slug?.trim()
Expand Down

0 comments on commit c7a1039

Please sign in to comment.