diff --git a/package.json b/package.json index 5248fd7..f8ea466 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "novelscraper", - "version": "2.0.2", + "name": "NovelScraper", + "version": "2.0.3", "description": "App for downloading novels from pirate sites.", "homepage": "https://github.com/HanaDigital/NovelScraper", "author": { diff --git a/src/app/services/sources/novelfull.service.ts b/src/app/services/sources/novelfull.service.ts index cefbde9..ed2e424 100644 --- a/src/app/services/sources/novelfull.service.ts +++ b/src/app/services/sources/novelfull.service.ts @@ -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); } }