Jackett/src/Jackett.Common/Definitions/tntvillage.yml

102 lines
3.2 KiB
YAML
Raw Normal View History

---
site: tntvillage
name: TNTVillage
description: "TNTVillage is an ITALIAN Public site for TV / MOVIES / GENERAL"
language: it-it
type: public
encoding: UTF-8
links:
- http://www.tntvillage.scambioetico.org/
caps:
categorymappings:
- {id: 4, cat: Movies, desc: "Movies category"}
- {id: 2, cat: Audio, desc: "Music videos"}
- {id: 29, cat: TV, desc: "TV Series"}
- {id: 7, cat: TV/Anime, desc: "Animes"}
- {id: 8, cat: TV/Anime, desc: "Cartoons"}
- {id: 14, cat: TV/Documentary, desc: "Documentaries"}
- {id: 30, cat: Books/Comics, desc: "Comics"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
settings: []
search:
paths:
- path: /src/releaselist.php
method: post
inputs:
cat: 0
page: 1
srcrel: "{{ .Keywords }}"
2017-09-08 17:01:36 +00:00
keywordsfilters:
- name: re_replace
args: ["S[0-9]{2}([^E]|$)", ""] # remove season tag without episode (search doesn't support it)
2017-09-08 17:01:36 +00:00
- name: diacritics
args: replace
# most ITA TV torrents are in XXxYY format, so we search without S/E prefixes and filter later
- name: re_replace
args: ["S0?(\\d{1,2})", " $1 "]
- name: re_replace
args: ["E(\\d{2,3})", " $1 "]
rows:
selector: div.showrelease_tb table tbody tr:not(tr:nth-child(1))
fields:
title:
selector: td:nth-child(7)
category:
selector: td:nth-child(3) a
attribute: href
filters:
- name: split
args: ["=", "-1"]
# inizio prova
- name: re_replace # replace special characters with " " (space)
args: ["[^a-zA-Z0-9]|\\.", " "]
# normalize to SXXEYY format
- name: re_replace
args: ["(\\d{2})x(\\d{2})", "S$1E$2"]
- name: re_replace
args: ["(\\d{1})x(\\d{2})", "S0$1E$2"]
- name: re_replace #Stagione X --> S0X
args: ["Stagione (\\d{0,1}\\s)", "S0$1"]
- name: re_replace #Stagione XX --> SXX
args: ["Stagione (\\d{2}\\s)", "S$1"]
- name: re_replace #/ Episodio [YY-YY --> EYY-YY
args: ["(\\s\\/\\sEpisodio|\\s\\/\\sEpisodi|\\sEpisodio|\\s\\|\\sEpisodio|\\sEpisodi)\\s\\[", "E"]
- name: re_replace #/ Completa [episodi YY-YY --> EYY-YY
args: ["(\\s\\/\\sCompleta\\s\\[episodi\\s)", "E"]
- name: re_replace #remove di YY] | remove /YY]
args: ["(\\sdi\\s\\d{1,2}|\\/\\d{1,2})\\]", " "]
- name: re_replace #remove various
args: ["(Serie completa|Completa|\\[in pausa\\])", ""]
# fine prova
details:
selector: td:nth-child(7) a
attribute: href
download:
selector: td:nth-child(1) a
attribute: href
magnet:
selector: td:nth-child(2) a
attribute: href
seeders:
selector: td:nth-child(5)
leechers:
selector: td:nth-child(4)
downloadvolumefactor:
text: "0"
uploadvolumefactor:
text: "1"
size:
selector: td:nth-child(3) a
case:
a[href*="&cat=4"]: "5GB"
a[href*="&cat=2"]: "100MB"
a[href*="&cat=30"]: "100MB"
"*": "2GB"