From a034ca9459eb54d9bfa9e1bb04401aaa6584a1fa Mon Sep 17 00:00:00 2001 From: HaiNX Date: Sat, 3 Sep 2022 18:00:22 +0700 Subject: [PATCH] MCT does not use slug to get chapter content -> using index instead --- MCT_downloader/MCT_downloader.user.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/MCT_downloader/MCT_downloader.user.js b/MCT_downloader/MCT_downloader.user.js index 43ba717..f85527a 100644 --- a/MCT_downloader/MCT_downloader.user.js +++ b/MCT_downloader/MCT_downloader.user.js @@ -135,10 +135,9 @@ * @returns {String} */ chapListValueFilter: function (options, val) { - val = val.slug.replace(options.general.referrer, ''); - val = '/' + val; + var path = '/chuong-' + val.index; - return val.trim(); + return path; }, /** @@ -167,11 +166,11 @@ }, /** - * Cleanup redundant charactes in chapter content. - * - * @param {String} html Chapter content as HTML - * @returns {String} - */ + * Cleanup redundant charactes in chapter content. + * + * @param {String} html Chapter content as HTML + * @returns {String} + */ cleanupHtml: function (html) { var options = this.options;