Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 5f549b8

Browse files
authored
Merge pull request #29 from CyferShepard/patch-1
Correctly Handle URL or MangaID in search field
2 parents ca36b40 + 66f8eb9 commit 5f549b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/nhentai/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const NHENTAI_IMAGE_URL = "https://i.nhentai.net/galleries/";
1010

1111

1212
function listChapters(url) {
13+
if (!url.includes(NHENTAI_BASE_URL, 0)) {
14+
url = NHENTAI_BASE_URL + url;
15+
}
16+
1317
var html = mango.get(url).body;
1418

1519
var urlMatch = /\/g\/([a-zA-Z0-9]+)\//.exec(url);

0 commit comments

Comments
 (0)