diff --git a/src/web/img/connectors/erosscans b/src/web/img/connectors/erosscans new file mode 100644 index 0000000000..710087d210 Binary files /dev/null and b/src/web/img/connectors/erosscans differ diff --git a/src/web/img/connectors/tecnoscan b/src/web/img/connectors/tecnoscan index 03bd08f27a..d1a1630515 100644 Binary files a/src/web/img/connectors/tecnoscan and b/src/web/img/connectors/tecnoscan differ diff --git a/src/web/mjs/connectors/ErosScans.mjs b/src/web/mjs/connectors/ErosScans.mjs new file mode 100644 index 0000000000..a509261aa1 --- /dev/null +++ b/src/web/mjs/connectors/ErosScans.mjs @@ -0,0 +1,31 @@ +import WordPressMangastream from './templates/WordPressMangastream.mjs'; + +export default class ErosScan extends WordPressMangastream { + + constructor() { + super(); + super.id = 'erosscans'; + super.label = 'Eros Scan'; + this.tags = ['webtoon', 'english']; + this.path = '/manga/list-mode/'; + this.config = { + url: { + label: 'URL', + description: 'This website changes their URL regularly.\nThis is the last known URL which can also be manually set by the user.', + input: 'text', + value: 'https://doomcomic.xyz' + } + }; + } + + get url() { + return this.config.url.value; + } + + set url(value) { + if (this.config && value) { + this.config.url.value = value; + Engine.Settings.save(); + } + } +} diff --git a/src/web/mjs/connectors/TecnoScan.mjs b/src/web/mjs/connectors/TecnoScan.mjs index 846287b325..24546099d1 100644 --- a/src/web/mjs/connectors/TecnoScan.mjs +++ b/src/web/mjs/connectors/TecnoScan.mjs @@ -1,12 +1,31 @@ -import WordPressMadara from './templates/WordPressMadara.mjs'; +import WordPressMangastream from './templates/WordPressMangastream.mjs'; -export default class TecnoScan extends WordPressMadara { +export default class TecnoScan extends WordPressMangastream { constructor() { super(); super.id = 'tecnoscan'; super.label = 'Tecno Scan'; - this.tags = [ 'webtoon', 'spanish' ]; - this.url = 'https://tecnoscann.com'; + this.tags = ['webtoon', 'english']; + this.path = '/manga/list-mode/'; + this.config = { + url: { + label: 'URL', + description: 'This website changes their URL regularly.\nThis is the last known URL which can also be manually set by the user.', + input: 'text', + value: 'https://tercodoom.xyz' + } + }; } -} \ No newline at end of file + + get url() { + return this.config.url.value; + } + + set url(value) { + if (this.config && value) { + this.config.url.value = value; + Engine.Settings.save(); + } + } +}