Skip to content

Commit

Permalink
Get Manga List (Single Page)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny1982 committed Jun 29, 2019
1 parent d68aa24 commit 38c1bd3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions web/lib/hakuneko/engine/base/connectors/mangazuki-archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,23 @@
this.tags = [ 'webtoon', 'high-quality', 'multi-lingual', 'scanlation' ];
this.url = 'https://beta.mangazuki.co';
}

_getMangaList( callback ) {
callback( new Error( 'Not implemented!' ), undefined );
let request = new Request( this.url + '/series/list', this.requestOptions );
this.fetchDOM( request, 'div#root div.container table.table tbody tr td:nth-of-type(2) a' )
.then( data => {
let mangaList = data.map( element => {
return {
id: this.getRootRelativeOrAbsoluteLink( element, request.url ),
title: element.text.trim()
};
} );
callback( null, mangaList );
} )
.catch( error => {
console.error( error, this );
callback( error, undefined );
} );
}

_getChapterList( manga, callback ) {
Expand Down

0 comments on commit 38c1bd3

Please sign in to comment.