1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-08 21:06:25 +00:00

sktorrent: new layout torrents_v2 resolves #10011

This commit is contained in:
Garfield69 2020-10-29 09:11:18 +13:00
parent 63a2acc274
commit bdb13809fd

View file

@ -31,7 +31,7 @@ caps:
- {id: 30, cat: PC/Games, desc: "Hry na Konzole"} - {id: 30, cat: PC/Games, desc: "Hry na Konzole"}
- {id: 37, cat: PC/Games, desc: "Hry na Linux"} - {id: 37, cat: PC/Games, desc: "Hry na Linux"}
- {id: 59, cat: PC/Games, desc: "Hry na Mac"} - {id: 59, cat: PC/Games, desc: "Hry na Mac"}
- {id: 16, cat: TV, desc: "TV Seriály"} - {id: 16, cat: TV, desc: "TV Seriál"}
- {id: 17, cat: TV/Documentary, desc: "TV Dokument"} - {id: 17, cat: TV/Documentary, desc: "TV Dokument"}
- {id: 42, cat: TV, desc: "TV Pořad"} - {id: 42, cat: TV, desc: "TV Pořad"}
- {id: 44, cat: TV/Sport, desc: "TV Sport"} - {id: 44, cat: TV/Sport, desc: "TV Sport"}
@ -63,9 +63,13 @@ login:
test: test:
path: torrent/index.php path: torrent/index.php
download:
selector: a[href^="download.php?id="]
attribute: href
search: search:
paths: paths:
- path: torrent/torrents.php - path: torrent/torrents_v2.php
inputs: inputs:
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
category: "{{ range .Categories }}{{.}};{{end}}" category: "{{ range .Categories }}{{.}};{{end}}"
@ -76,66 +80,61 @@ search:
args: replace args: replace
rows: rows:
selector: table.lista > tbody > tr > td > table.lista > tbody > tr:has(a[href^="details.php?id="]) selector: table.lista > tbody > tr > td:has(a[href^="details.php?name="])
fields: fields:
category:
selector: a[href^="torrents_v2.php?category="]
attribute: href
filters:
- name: querystring
args: category
title: title:
selector: td.lista a[href^="details.php?id="] selector: a[href^="details.php?name="]
attribute: title attribute: title
filters: filters:
- name: re_replace - name: re_replace
args: [".*? / ", ""] args: [".*? / ", ""]
- name: diacritics - name: diacritics
args: replace args: replace
- name: replace - name: re_replace
args: ["serie", ""] args: ["(?i)serie", ""]
- name: replace
args: ["Serie", ""]
- name: re_replace - name: re_replace
args: ["(\\d{2})\\.", "S$1"] args: ["(\\d{2})\\.", "S$1"]
- name: re_replace - name: re_replace
args: ["(\\d{1})\\.", "S0$1"] args: ["(\\d{1})\\.", "S0$1"]
category:
selector: td:nth-child(1) a[href^="torrents.php?category="]
attribute: href
filters:
- name: querystring
args: category
details: details:
selector: td.lista a[href^="details.php?id="] selector: a[href^="details.php?name="]
attribute: href attribute: href
download: download:
selector: td.lista a[href^="download.php?id="] selector: a[href^="details.php?name="]
attribute: href attribute: href
size: size:
selector: td:nth-child(3) selector: div > div
filters: filters:
- name: split - name: split
args: ["|", 0] args: ["|", 0]
- name: regexp - name: regexp
args: "Velkost (.+?) ?$" args: "Velkost (.+?) ?$"
date: date:
selector: td:nth-child(3) selector: div > div
filters: filters:
- name: split - name: regexp
args: ["|", 1] args: "Pridany (\\d{2}/\\d{2}/\\d{4})"
- name: replace
args: ["Pridany ", ""]
- name: replace
args: ["o ", ""]
- name: append - name: append
args: " +00:00" # auto adjusted by site account profile args: " +00:00" # auto adjusted by site account profile
- name: dateparse - name: dateparse
args: "02/01/2006 15:04 -07:00" args: "02/01/2006 -07:00"
seeders: seeders:
selector: td:nth-child(5) > a selector: div > div
leechers:
selector: td:nth-child(6) > a
grabs:
selector: td:nth-child(7)
filters: filters:
- name: replace - name: regexp
args: ["---", "0"] args: "Odosielaju : (\\d+)"
leechers:
selector: div > div
filters:
- name: regexp
args: "Stahuju : (\\d+)"
downloadvolumefactor: downloadvolumefactor:
text: 1 text: 1
uploadvolumefactor: uploadvolumefactor: