Mobius 发表于 2024-9-29 10:02 PM

你可以反馈给这个这个插件的作者,让他把47bt添加进去.如果插件不是开源的话,如果是开源则可以自己编辑修改

wesleyqiu 发表于 2024-12-27 08:32 AM

本帖最后由 wesleyqiu 于 2024-12-27 08:34 AM 编辑


{
    "id": "xxx",
    "name": "站点名称",
    "domain": "https://www.xxx.com/",
    "ext_domains": [
      "https://www.xxx1.com/",
      "https://www.xxx2.com/"
    ],
    "encoding": "UTF-8",
    "public": false,
    "search": {
      "paths": [
      {
          "path": "torrents.php",
          "method": "get"
      }
      ],
      "params": {
      "search": "{keyword}",
      "search_area": 4
      },
      "batch": {
      "delimiter": " ",
      "space_replace": "_"
      }
    },
    "category": {
      "movie": [
      {
          "id": 401,
          "cat": "Movies",
          "desc": "Movies电影"
      },
      {
          "id": 405,
          "cat": "Anime",
          "desc": "Animations动漫"
      },
      {
          "id": 404,
          "cat": "Documentary",
          "desc": "Documentaries纪录片"
      }
      ],
      "tv": [
      {
          "id": 402,
          "cat": "TV",
          "desc": "TV Series电视剧"
      },
      {
          "id": 403,
          "cat": "TV",
          "desc": "TV Shows综艺"
      },
      {
          "id": 404,
          "cat": "Documentary",
          "desc": "Documentaries纪录片"
      },
      {
          "id": 405,
          "cat": "Anime",
          "desc": "Animations动漫"
      }
      ]
    },
    "torrents": {
      "list": {
      "selector": "table.torrents > tr:has(\"table.torrentname\")"
      },
      "fields": {
      "id": {
          "selector": "a",
          "attribute": "href",
          "filters": [
            {
            "name": "re_search",
            "args": [
                "\\d+",
                0
            ]
            }
          ]
      },
      "title_default": {
          "selector": "a"
      },
      "title_optional": {
          "optional": true,
          "selector": "a",
          "attribute": "title"
      },
      "title": {
          "text": "{% if fields['title_optional'] %}{{ fields['title_optional'] }}{% else %}{{ fields['title_default'] }}{% endif %}"
      },
      "details": {
          "selector": "a",
          "attribute": "href"
      },
      "download": {
          "selector": "a",
          "attribute": "href"
      },
      "imdbid": {
          "selector": "div.imdb_100 > a",
          "attribute": "href",
          "filters": [
            {
            "name": "re_search",
            "args": [
                "tt\\d+",
                0
            ]
            }
          ]
      },
      "date_elapsed": {
          "selector": "td:nth-child(4) > span",
          "optional": true
      },
      "date_added": {
          "selector": "td:nth-child(4) > span",
          "attribute": "title",
          "optional": true
      },
      "size": {
          "selector": "td:nth-child(5)"
      },
      "seeders": {
          "selector": "td:nth-child(6)"
      },
      "leechers": {
          "selector": "td:nth-child(7)"
      },
      "grabs": {
          "selector": "td:nth-child(8)"
      },
      "downloadvolumefactor": {
          "case": {
            "img.pro_free": 0,
            "img.pro_free2up": 0,
            "img.pro_50pctdown": 0.5,
            "img.pro_50pctdown2up": 0.5,
            "img.pro_30pctdown": 0.3,
            "*": 1
          }
      },
      "uploadvolumefactor": {
          "case": {
            "img.pro_50pctdown2up": 2,
            "img.pro_free2up": 2,
            "img.pro_2up": 2,
            "*": 1
          }
      },
      "description": {
          "selector": "td:nth-child(2) > table > tr > td.embedded > span",
          "contents": -1
      },
      "labels": {
          "selector": "td:nth-child(2) > table > tr > td.embedded > span.tags"
      }
      }
    }
}

wesleyqiu 发表于 2024-12-27 08:37 AM

本帖最后由 wesleyqiu 于 2024-12-27 08:38 AM 编辑

Mobius 发表于 2024-9-29 10:02 PM
你可以反馈给这个这个插件的作者,让他把47bt添加进去.如果插件不是开源的话,如果是开源则可以自己编辑修改 ...
moviepilot扩展内建索引器的索引站点:
通过调用 SitesHelper().add_indexer(domain: str, indexer: dict) 方法,新增或修改内建索引器的支持范围,其中indexer为站点配置Json,格式示例如上条回复
参考的这个教程:
https://blog.csdn.net/XG_SGX/article/details/144212227

Mobius 发表于 2024-12-28 01:25 AM

wesleyqiu 发表于 2024-12-27 08:37 AM
moviepilot扩展内建索引器的索引站点:
通过调用 SitesHelper().add_indexer(domain: str, indexer: dict) ...

确实可以参考你给的这个写一个出来
页: 1 [2]
查看完整版本: 有办法让nastool优先搜索本站资源吗?