2.0.0 • Published 4 years ago

manladag v2.0.0

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

Add Your Source strategie here

Example: add the source Lelscan

1. Create folder

$ mkdir LelScan
$ cd LelScan

2. Create Source subClass

lib/LelScan/class.js

const SourceClass = require('../class')()
class LelScan extends SourceClass {}

3. Redefine static members of Source

Please follows Source class logic

lib/LelScan/lelscan.js

const axios = require('axios')
const url = 'http://lelscanv.com'
const site = 'LelScan'
const mangas = [
{
    name : 'One Piece',
    path: '/scan-one-piece',
    pagePath : '/one-piece'
},
{
    name: 'Dr Stone',
    path: '/scan-dr-stone',
    pagePath: '/dr-stone'
}]
function downloadChapter(manga_index,chapter) {
     
     //Your logic here
     
}
// definition of others startegies

module.exports.url = url
module.exports.mangas = mangas
module.exports.site = site    

module.exports.downloadChatpter = downloadChapter
//export the other strategies

lib/LelScan/class.js

const SourceClass = require('../class')()
const lelscan = require('./lelscan')
class LelScan extends SourceClass {}
LelScan.url = lelscan.url
LelScan.mangas = lelscan.mangas
LelScan.site = lelscan.site
LelScan._downloadChapter = lelscan.downloadChapter
module.exports = LelScan
0.50.0

4 years ago

2.0.0

4 years ago

0.20.0

4 years ago

0.0.1

4 years ago

0.10.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago