Skip to content

Commit

Permalink
Deploying to gh-pages from @ 99139b4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
Seyden committed Jul 28, 2024
1 parent 383d10e commit 01374e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions 0.8/AsuraScans/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3918,7 +3918,7 @@ const simpleUrl = require('simple-url');
const ASURASCANS_DOMAIN = 'https://asuracomic.net';
const ASURASCANS_API_DOMAIN = 'https://gg.asuracomic.net';
exports.AsuraScansInfo = {
version: '4.1.2',
version: '4.1.3',
name: 'AsuraScans',
description: 'Extension that pulls manga from AsuraScans',
author: 'Seyden',
Expand Down Expand Up @@ -4134,7 +4134,7 @@ class AsuraScans {
}
async getMangaDetails(mangaId) {
const data = await this.getMangaRequest(mangaId);
return this.parser.parseMangaDetails(data, mangaId, this);
return await this.parser.parseMangaDetails(data, mangaId, this);
}
async getChapters(mangaId) {
const data = await this.getMangaRequest(mangaId);
Expand Down Expand Up @@ -4405,7 +4405,7 @@ class AsuraScansParser {
return isLast;
};
}
parseMangaDetails(data, mangaId, source) {
async parseMangaDetails(data, mangaId, source) {
const obj = (0, AsuraScansHelper_1.extractMangaData)(data.replace(/\\"/g, '"').replace(/\\\\"/g, '\\"'), "comic") ?? '';
if (obj == '') {
throw new Error(`Failed to parse comic object for manga ${mangaId}`); // If null, throw error, else parse data to json.
Expand All @@ -4420,6 +4420,10 @@ class AsuraScansParser {
const covers = [comicObj.comic.cover];
const description = this.decodeHTMLEntity($('span.font-medium').text().trim().replace(/\\r\\n/gm, '\n'));
const rating = comicObj.comic.rating;
const slug = comicObj.comic.slug?.trim();
if (slug) {
await source.setMangaSlug(mangaId, `series/${slug}`);
}
const rawStatus = comicObj.comic.status.name.trim();
let status;
switch (rawStatus.toLowerCase()) {
Expand Down
10 changes: 7 additions & 3 deletions 0.8/AsuraScans/source.js
Original file line number Diff line number Diff line change
Expand Up @@ -3918,7 +3918,7 @@ const simpleUrl = require('simple-url');
const ASURASCANS_DOMAIN = 'https://asuracomic.net';
const ASURASCANS_API_DOMAIN = 'https://gg.asuracomic.net';
exports.AsuraScansInfo = {
version: '4.1.2',
version: '4.1.3',
name: 'AsuraScans',
description: 'Extension that pulls manga from AsuraScans',
author: 'Seyden',
Expand Down Expand Up @@ -4134,7 +4134,7 @@ class AsuraScans {
}
async getMangaDetails(mangaId) {
const data = await this.getMangaRequest(mangaId);
return this.parser.parseMangaDetails(data, mangaId, this);
return await this.parser.parseMangaDetails(data, mangaId, this);
}
async getChapters(mangaId) {
const data = await this.getMangaRequest(mangaId);
Expand Down Expand Up @@ -4405,7 +4405,7 @@ class AsuraScansParser {
return isLast;
};
}
parseMangaDetails(data, mangaId, source) {
async parseMangaDetails(data, mangaId, source) {
const obj = (0, AsuraScansHelper_1.extractMangaData)(data.replace(/\\"/g, '"').replace(/\\\\"/g, '\\"'), "comic") ?? '';
if (obj == '') {
throw new Error(`Failed to parse comic object for manga ${mangaId}`); // If null, throw error, else parse data to json.
Expand All @@ -4420,6 +4420,10 @@ class AsuraScansParser {
const covers = [comicObj.comic.cover];
const description = this.decodeHTMLEntity($('span.font-medium').text().trim().replace(/\\r\\n/gm, '\n'));
const rating = comicObj.comic.rating;
const slug = comicObj.comic.slug?.trim();
if (slug) {
await source.setMangaSlug(mangaId, `series/${slug}`);
}
const rawStatus = comicObj.comic.status.name.trim();
let status;
switch (rawStatus.toLowerCase()) {
Expand Down
2 changes: 1 addition & 1 deletion 0.8/versioning.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildTime":"2024-07-28T03:46:49.698Z","sources":[{"id":"AsuraScans","name":"AsuraScans","author":"Seyden","desc":"Extension that pulls manga from AsuraScans","website":"https://github.com/Seyden","contentRating":"MATURE","version":"4.1.2","icon":"icon.png","tags":[],"websiteBaseURL":"https://asuracomic.net","intents":53},{"id":"BatoTo","name":"BatoTo","author":"niclimcy","desc":"Extension that pulls manga from bato.to","website":"https://github.com/niclimcy","contentRating":"MATURE","version":"3.1.2","icon":"icon.png","tags":[{"text":"Multi Language","type":"default"}],"websiteBaseURL":"https://bato.to","intents":53},{"id":"Hentai2Read","name":"Hentai2Read","author":"EmZedH","desc":"Extension that pulls manga from hentai2read.com","website":"https://github.com/EmZedH","contentRating":"ADULT","version":"1.0.1","icon":"icon.png","tags":[{"text":"18+","type":"warning"}],"websiteBaseURL":"https://hentai2read.com","intents":5},{"id":"MangaDex","name":"MangaDex","author":"Nar1n & Netsky","desc":"Extension that pulls manga from MangaDex","website":"https://github.com/nar1n","contentRating":"EVERYONE","version":"3.0.5","icon":"icon.png","tags":[],"websiteBaseURL":"https://mangadex.org","intents":37},{"id":"MangaPlus","name":"MangaPlus","author":"Rinto-kun","desc":"Extension that pulls manga from Manga+ by Shueisha","website":"https://github.com/Rinto-kun","contentRating":"EVERYONE","version":"2.0.3","icon":"icon.png","tags":[],"websiteBaseURL":"https://mangaplus.shueisha.co.jp","intents":53},{"id":"NHentai","name":"nhentai","author":"NotMarek & Netsky","desc":"Extension which pulls content from nHentai.","website":"https://github.com/TheNetsky","contentRating":"ADULT","version":"4.0.7","icon":"icon.png","tags":[{"text":"18+","type":"warning"}],"websiteBaseURL":"https://nhentai.net","intents":53}],"builtWith":{"toolchain":"0.8.0-alpha.47","types":"0.8.0-alpha.47"}}
{"buildTime":"2024-07-28T17:33:19.038Z","sources":[{"id":"AsuraScans","name":"AsuraScans","author":"Seyden","desc":"Extension that pulls manga from AsuraScans","website":"https://github.com/Seyden","contentRating":"MATURE","version":"4.1.3","icon":"icon.png","tags":[],"websiteBaseURL":"https://asuracomic.net","intents":53},{"id":"BatoTo","name":"BatoTo","author":"niclimcy","desc":"Extension that pulls manga from bato.to","website":"https://github.com/niclimcy","contentRating":"MATURE","version":"3.1.2","icon":"icon.png","tags":[{"text":"Multi Language","type":"default"}],"websiteBaseURL":"https://bato.to","intents":53},{"id":"Hentai2Read","name":"Hentai2Read","author":"EmZedH","desc":"Extension that pulls manga from hentai2read.com","website":"https://github.com/EmZedH","contentRating":"ADULT","version":"1.0.1","icon":"icon.png","tags":[{"text":"18+","type":"warning"}],"websiteBaseURL":"https://hentai2read.com","intents":5},{"id":"MangaDex","name":"MangaDex","author":"Nar1n & Netsky","desc":"Extension that pulls manga from MangaDex","website":"https://github.com/nar1n","contentRating":"EVERYONE","version":"3.0.5","icon":"icon.png","tags":[],"websiteBaseURL":"https://mangadex.org","intents":37},{"id":"MangaPlus","name":"MangaPlus","author":"Rinto-kun","desc":"Extension that pulls manga from Manga+ by Shueisha","website":"https://github.com/Rinto-kun","contentRating":"EVERYONE","version":"2.0.3","icon":"icon.png","tags":[],"websiteBaseURL":"https://mangaplus.shueisha.co.jp","intents":53},{"id":"NHentai","name":"nhentai","author":"NotMarek & Netsky","desc":"Extension which pulls content from nHentai.","website":"https://github.com/TheNetsky","contentRating":"ADULT","version":"4.0.7","icon":"icon.png","tags":[{"text":"18+","type":"warning"}],"websiteBaseURL":"https://nhentai.net","intents":53}],"builtWith":{"toolchain":"0.8.0-alpha.47","types":"0.8.0-alpha.47"}}

0 comments on commit 01374e9

Please sign in to comment.