1
0
mirror of https://github.com/Prowlarr/Indexers.git synced 2026-04-27 03:43:30 +01:00
Files
Indexers/definitions/v2/toros.yml
bakerboy448 4dd3e0a031 New: V2 definitions for changes from selector to selectors
Indexer Updates, as of Jackett 2e4a164
2021-07-01 22:14:48 -04:00

114 lines
2.6 KiB
YAML

---
id: toros
name: TOROS
description: "TOROS is a Public torrent index"
language: en-us
type: public
encoding: UTF-8
links:
- https://www.toros.co/
- https://toros.nocensor.space/
caps:
categorymappings:
- {id: 1, cat: Movies, desc: Movies}
- {id: 2, cat: Audio, desc: Music}
- {id: 3, cat: TV, desc: Television}
- {id: 4, cat: PC/Games, desc: Games}
- {id: 5, cat: PC, desc: Software}
- {id: 6, cat: TV/Anime, desc: Anime}
- {id: 7, cat: XXX, desc: Adult}
- {id: 8, cat: Books, desc: Ebooks}
- {id: 9, cat: TV/Anime, desc: Animation}
- {id: 10, cat: Other, desc: Other}
- {id: 0, cat: Other, desc: TBC}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
music-search: [q]
book-search: [q]
settings:
- name: sort
type: select
label: Sort requested from site
default: added
options:
added: created
seeds: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: desc
options:
desc: desc
asc: asc
download:
selectors:
- selector: a[href^="magnet:?xt="]
attribute: href
search:
paths:
# https://www.toros.co/all/torrents/capital-hill.html?v=&smi=&sma=&i=100&sort=added&o=desc
- path: "{{ if .Keywords }}all/torrents/{{ .Keywords }}.html?v=&smi=&sma=&i=100&sort={{ .Config.sort }}&o={{ .Config.type }}{{ else }}top100.html{{ end }}"
keywordsfilters:
- name: re_replace
args: ["[\\s]+", "-"]
- name: tolower
rows:
selector: table.table-responsive tr:has(a[href^="/torrent/"])
filters:
- name: andmatch
fields:
category:
selector: td:nth-child(1)
attribute: class
filters:
- name: regexp
args: (\d+)
title:
selector: a[href^="/torrent/"]
details:
selector: a[href^="/torrent/"]
attribute: href
download:
selector: a[href^="/torrent/"]
attribute: href
date:
selector: td:nth-child(2):contains("day")
optional: true
filters:
- name: fuzzytime
date:
selector: td:nth-child(2):contains("ago")
optional: true
filters:
- name: timeago
date:
selector: td:nth-child(2):not(:contains("ago")):not(:contains("day"))
optional: true
filters:
- name: append
args: " +01:00" # CET
- name: dateparse
args: "2 Jan -07:00"
size:
selector: td:nth-child(3)
seeders:
selector: td:nth-child(4)
leechers:
selector: td:nth-child(5)
downloadvolumefactor:
text: 0
uploadvolumefactor:
text: 1
# engine n/a