1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-27 03:43:30 +01:00
Files
Indexers/definitions/v3/bt4g.yml
Qstick e07c451080 New: YAML Schema Validations (#206)
* New: YAML Schema Validations

* fixup! skip json when doing ymllint

* fixup!

* fixup!

* fixup!

* fixup!

* fixup! validate login methods, filter names, captcha types

* fixup! validate tracker type

* fixup! validate tracker type

* fixup! validate category mappings use a correct category

* fixup! further download block validation

* fixup!

* fixup! validate links and legacy-links are valid urls

* fixup! validate settings types

* fixup! v6 doubanid

* fixup! v5 json filter validation

* fixup! xbit should be v5
2022-06-24 21:01:47 -05:00

78 lines
1.5 KiB
YAML

---
id: bt4g
name: BT4G
description: "BT4G is a Public metadata crawler for magnets"
language: en-US
type: public
encoding: UTF-8
links:
- https://bt4g.org/
caps:
categories:
Application: PC
Archive file: Other
Audio: Audio
Doc: Books
Other: Other
Video: Movies
TV: TV # dummy cat to allow both Movies,TV to be categorised when Video is found.
modes:
search: [q]
tv-search: [q]
movie-search: [q]
music-search: [q]
book-search: [q]
settings: []
search:
paths:
# https://bt4g.org/search/2021
# site does not support cat search
- path: "search/{{ if .Keywords }}{{ .Keywords }}{{ else }}{{ .Today.Year }}{{ end }}"
rows:
selector: div.row > div.col > div:has(h5)
fields:
title:
selector: a
category:
selector: span.cpill
category:
# add tv to video
optional: true
selector: span.cpill
filters:
- name: replace
args: ["Video", "TV"]
details:
selector: a
attribute: href
infohash:
selector: a
attribute: href
filters:
- name: replace
args: ["/magnet/", ""]
date:
selector: span:nth-last-child(5) b
filters:
- name: dateparse
args: "2006-01-02"
files:
selector: span:nth-last-child(4) b
size:
selector: span:nth-last-child(3) b
seeders:
selector: span:nth-last-child(2) b
leechers:
selector: span:nth-last-child(1) b
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a