-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding TernoScans and ErosScan (#7658)
* Adding TernoScans and ErosScan Co-authored-by: MikeZeDev <[email protected]>
- Loading branch information
Showing
4 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' | ||
} | ||
}; | ||
} | ||
} | ||
|
||
get url() { | ||
return this.config.url.value; | ||
} | ||
|
||
set url(value) { | ||
if (this.config && value) { | ||
this.config.url.value = value; | ||
Engine.Settings.save(); | ||
} | ||
} | ||
} |