Skip to content

Commit

Permalink
chapter links fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-nyt committed Nov 23, 2020
1 parent 218b8ae commit 4420eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/sources/novelfull.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class NovelfullService extends sourceService {
const currentPageHtml = await this.getHtml(novel.link + "?page=" + i + "&per-page=50");
const chapters = currentPageHtml.getElementsByClassName('row')[1].getElementsByTagName('li');
for (let x = 0; x < chapters.length; x++) {
chapterLinks.push(chapters[x].getElementsByTagName('a')[0].href.replace(/http:\/\/localhost:\d+/g, 'https://novelfull.com'));
chapterLinks.push("https://novelfull.com" + chapters[x].getElementsByTagName('a')[0].getAttribute('href'));
chapterNames.push(chapters[x].getElementsByTagName('a')[0].title);
}
}
Expand Down

0 comments on commit 4420eb9

Please sign in to comment.