mirror of
https://github.com/Jackett/Jackett
synced 2025-01-03 13:46:10 +00:00
add btmet a public magnet indexer. resolves #13275
This commit is contained in:
parent
9b589264a5
commit
b57e12a690
2 changed files with 105 additions and 0 deletions
|
@ -45,6 +45,7 @@ A third-party Golang SDK for Jackett is available from [webtor-io/go-jackett](ht
|
|||
* BT.etree
|
||||
* BT4G
|
||||
* BTDIGG
|
||||
* BTMET
|
||||
* BTmirror
|
||||
* BTSOW
|
||||
* Byrutor
|
||||
|
|
104
src/Jackett.Common/Definitions/btmet.yml
Normal file
104
src/Jackett.Common/Definitions/btmet.yml
Normal file
|
@ -0,0 +1,104 @@
|
|||
---
|
||||
id: btmet
|
||||
name: BTMET
|
||||
description: "BTMET is a Public magnet indexer"
|
||||
language: en-US
|
||||
type: public
|
||||
encoding: UTF-8
|
||||
links:
|
||||
- https://btmet.com/
|
||||
|
||||
caps:
|
||||
categories:
|
||||
Audio: Audio
|
||||
Compressed: Other
|
||||
Image: Other
|
||||
Installation: PC
|
||||
Other: Other
|
||||
TV: TV # dummy cat to allow both Movies,TV to be categorised when Video is found.
|
||||
Video: Movies
|
||||
|
||||
modes:
|
||||
search: [q]
|
||||
tv-search: [q, season, ep]
|
||||
movie-search: [q]
|
||||
music-search: [q]
|
||||
|
||||
settings:
|
||||
- name: sort
|
||||
type: select
|
||||
label: Sort requested from site
|
||||
default: 0
|
||||
options:
|
||||
0: relevance
|
||||
1: created
|
||||
2: size
|
||||
|
||||
search:
|
||||
paths:
|
||||
# https://btmet.com/search.php?q=2022&c=&l=&o=1
|
||||
- path: search.php
|
||||
inputs:
|
||||
q: "{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
|
||||
# does not support multi cats so defaulting to all
|
||||
c: ""
|
||||
# 1 Chinese, 2 Japanese, 3 Korean
|
||||
l: ""
|
||||
o: "{{ if .Keywords }}{{ .Config.sort }}{{ else }}1{{ end }}"
|
||||
|
||||
rows:
|
||||
selector: div.search-item:has(a[href^="magnet"])
|
||||
filters:
|
||||
- name: andmatch
|
||||
|
||||
fields:
|
||||
category:
|
||||
selector: div.item-bar > span
|
||||
category|append:
|
||||
# add tv to video
|
||||
optional: true
|
||||
selector: div.item-bar > span
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["Video", "TV"]
|
||||
title:
|
||||
selector: a.smashTitle > script
|
||||
filters:
|
||||
- name: urldecode
|
||||
- name: replace
|
||||
args: ['document.write(decodeURIComponent("', ""]
|
||||
- name: replace
|
||||
args: ['"));', ""]
|
||||
- name: replace
|
||||
args: ["<b style='color:#ea644a'>", ""]
|
||||
- name: replace
|
||||
args: ["</b>", ""]
|
||||
details:
|
||||
selector: a.smashTitle
|
||||
attribute: href
|
||||
infohash:
|
||||
selector: a[href^="magnet:?xt="]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: regexp
|
||||
args: ([a-f|0-9]{40})
|
||||
date:
|
||||
# unix
|
||||
selector: div.item-bar > span:nth-child(2) > b
|
||||
attribute: t
|
||||
filters:
|
||||
- name: regexp
|
||||
args: (\d{10})
|
||||
size:
|
||||
selector: div.item-bar > span:nth-child(3) > b
|
||||
files:
|
||||
selector: div.item-bar > span:nth-child(4) > b
|
||||
seeders:
|
||||
selector: div.item-bar > span:nth-child(5) > b
|
||||
leechers:
|
||||
text: 1
|
||||
downloadvolumefactor:
|
||||
text: 0
|
||||
uploadvolumefactor:
|
||||
text: 1
|
||||
# engine n/a
|
Loading…
Reference in a new issue