Horis 3 năm trước cách đây
mục cha
commit
6f2c1f7566

+ 1 - 0
app/src/main/java/io/legado/app/model/webBook/BookChapterList.kt

@@ -130,6 +130,7 @@ object BookChapterList {
             bookChapter.index = index
             bookChapter.index = index
             if (!formatJs.isNullOrBlank()) {
             if (!formatJs.isNullOrBlank()) {
                 bindings["index"] = index + 1
                 bindings["index"] = index + 1
+                bindings["chapter"] = bookChapter
                 bindings["title"] = bookChapter.title
                 bindings["title"] = bookChapter.title
                 RhinoScriptEngine.runCatching {
                 RhinoScriptEngine.runCatching {
                     eval(formatJs, bindings)?.toString()?.let {
                     eval(formatJs, bindings)?.toString()?.let {