[
  {
    "bookSourceComment": "// 修复版：修复搜索功能",
    "bookSourceGroup": "天籁小说",
    "bookSourceName": "天籁小说(修复版)",
    "bookSourceType": 0,
    "bookSourceUrl": "http://www.picdg.co",
    "customOrder": -179,
    "enabled": true,
    "enabledExplore": true,
    "lastUpdateTime": 1715360031728,
    "respondTime": 180625,
    "ruleBookInfo": {
      "author": "[property$=author]@content",
      "coverUrl": "[property$=image]@content",
      "intro": "[property$=description]@content",
      "kind": "[property~=category|status|update_time]@content",
      "lastChapter": "[property$=latest_chapter_name]@content",
      "name": "[property$=book_name]@content",
      "wordCount": ".book-meta:nth-of-type(4)@text##字数："
    },
    "ruleContent": {
      "content": "#content@html",
      "nextContentUrl": ".next@href"
    },
    "ruleExplore": {},
    "ruleSearch": {
      "author": ".book-author@text",
      "bookList": ".book-li",
      "bookUrl": ".book-layout@href",
      "checkKeyWord": "剑来",
      "coverUrl": "img@data-echo",
      "intro": ".book-desc@text",
      "kind": ".tag-small@text",
      "name": ".book-title@text",
      "wordCount": ""
    },
    "ruleToc": {
      "chapterList": "//div[@id='list']/dl/a[dt[contains(text(),'全部章节目录')]]/following-sibling::a",
      "chapterName": "text",
      "chapterUrl": "href"
    },
    "searchUrl": "@js:\nlet baseUrl = source.get('bookSourceUrl')\nlet searchPage = java.ajax(baseUrl + '/search.html')\nlet action = org.jsoup.Jsoup.parse(searchPage).select('#post').attr('action')\nif (!action) action = baseUrl + '/e/search/index.php'\nlet option = {\n  'method': 'POST',\n  'body': 'searchtype=all&searchkey=' + encodeURIComponent(key)\n}\nString(action + ',' + JSON.stringify(option))",
    "weight": 0
  }
]
