Skip to content

Commit

Permalink
Fix batoto/kissmanga chapter mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Uden committed May 18, 2017
1 parent df13e33 commit f8d3bd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mangarack-component-core/src/providers/batoto/series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function getAuthors($: mio.IHtmlServiceDocument): string[] {
*/
function getChapters($: mio.IHtmlServiceDocument): mio.IChapter[] {
let results: mio.IChapter[] = [];
$('tr.lang_English').find('a[href*=\'/reader\']').map((_, a) => {
$('tr.lang_English').find('a[href*=\'/reader\']').each((_, a) => {
let address = $(a).attr('href');
if (address) {
let metadata = scan($(a).text());
Expand Down
2 changes: 1 addition & 1 deletion mangarack-component-core/src/providers/kissmanga/series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function getAuthors($: mio.IHtmlServiceDocument): string[] {
function getChapters($: mio.IHtmlServiceDocument): mio.IChapter[] {
let results: mio.IChapter[] = [];
let title = getTitle($);
$('a[href*=\'/Manga/\'][title*=\'Read\']').map((_, a) => {
$('a[href*=\'/Manga/\'][title*=\'Read\']').each((_, a) => {
let address = $(a).attr('href');
let isValid = /id=([0-9]+)$/i.test(address);
if (address && isValid) {
Expand Down

0 comments on commit f8d3bd7

Please sign in to comment.