From 3bb0917374426882d5456021f27fa443422e7145 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Thu, 15 Oct 2020 11:38:22 +0000 Subject: [PATCH] Allow `/manga/` URL for MangaDex --- public/js/download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/download.js b/public/js/download.js index 1ae23bb..aca45eb 100644 --- a/public/js/download.js +++ b/public/js/download.js @@ -95,7 +95,7 @@ const search = () => { try { const path = new URL(input).pathname; - const match = /\/title\/([0-9]+)/.exec(path); + const match = /\/(?:title|manga)\/([0-9]+)/.exec(path); int_id = parseInt(match[1]); } catch (e) { int_id = parseInt(input);