Skip to content

Commit

Permalink
Hivetoon: Change template (#7731)
Browse files Browse the repository at this point in the history
* remove debug message

* InfernalVoidScan : use Iken template
  • Loading branch information
MikeZeDev authored and Sheepux committed Feb 9, 2025
1 parent 1d1df00 commit 8d14ce6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/web/mjs/connectors/InfernalVoidScans.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import WordPressMangastream from './templates/WordPressMangastream.mjs';
import Iken from './templates/Iken.mjs';

export default class InfernalVoidScans extends WordPressMangastream {
export default class InfernalVoidScans extends Iken {

constructor() {
super();
super.id = 'infernalvoidscans';
super.label = 'InfernalVoidScans';
this.tags = [ 'webtoon', 'scanlation', 'english' ];
this.url = 'https://hivetoon.com';
this.path = '/manga/list-mode/';
this.requestOptions.headers.set('x-referer', this.url);
}
}
5 changes: 1 addition & 4 deletions src/web/mjs/connectors/templates/Iken.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ export default class Iken extends Connector {
const { posts } = await this.fetchJSON(request);

return posts.map(manga => {
// need an example of a novel page to add support
if (manga.isNovel) throw new Error('Novels are not supported');

return {
id: manga.id,
title: manga.postTitle
Expand Down Expand Up @@ -99,4 +96,4 @@ export default class Iken extends Connector {
title: post.postTitle
});
}
}
}

0 comments on commit 8d14ce6

Please sign in to comment.