Misc parsing fixes (#1234)

This commit is contained in:
adamwinn
2017-04-04 13:36:06 -06:00
committed by kaso17
parent 4baac26e76
commit 27886b769a
6 changed files with 10 additions and 10 deletions

View File

@@ -62,7 +62,7 @@
3dformat: 0 3dformat: 0
active: 1 active: 1
rows: rows:
selector: table.lista > tbody > tr:has(a[href^="index.php?page=torrents&category="]) selector: table[cellspacing!="1"].lista > tbody > tr:has(a[href^="index.php?page=torrents&category="])
fields: fields:
category: category:
selector: a[href^="index.php?page=torrents&category="] selector: a[href^="index.php?page=torrents&category="]
@@ -86,8 +86,8 @@
selector: td:nth-last-child(4) selector: td:nth-last-child(4)
seeders: seeders:
selector: td:nth-last-child(3) selector: td:nth-last-child(3)
leechers: # leechers:
selector: td:nth-last-child(2) # selector: td:nth-last-child(2)
date: date:
selector: td:nth-last-child(5) selector: td:nth-last-child(5)
filters: filters:

4
src/Jackett/Definitions/bitspyder.yml Normal file → Executable file
View File

@@ -94,10 +94,10 @@
files: files:
selector: a[href*="&filelist=1"] selector: a[href*="&filelist=1"]
grabs: grabs:
selector: td.rowcol:nth-child(7):contains("times"), font:contains("Snatches:") selector: td.rowcol:nth-child(7):has(br)
filters: filters:
- name: regexp - name: regexp
args: ([\d\,]+) args: ([\d,]+)
seeders: seeders:
selector: td.rowcol:nth-last-child(3) selector: td.rowcol:nth-last-child(3)
leechers: leechers:

View File

@@ -57,7 +57,7 @@
category: category:
text: 1 text: 1
title: title:
selector: td:nth-child(2) selector: td:nth-child(2) a
download: download:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href

View File

@@ -78,7 +78,7 @@
incldead: 1 incldead: 1
search_by: "{{ if .Query.IMDBID }}imdb{{else}}name{{end}}" search_by: "{{ if .Query.IMDBID }}imdb{{else}}name{{end}}"
rows: rows:
selector: table[class!="ice"] > tbody > tr:has(a[title][href^="details.php?id="]) selector: table.torrenttable > tbody > tr:has(a[title][href^="details.php?id="])
fields: fields:
title: title:
selector: a[title][href^="details.php?id="] selector: a[title][href^="details.php?id="]

View File

@@ -73,7 +73,7 @@
settings: [] settings: []
search: search:
path: "{{if .Query.Keywords}}search/{{ .Query.Keywords}}/0/99/0{{else}}/recent{{end}}" path: "{{if .Query.Keywords}}search/{{ .Query.Keywords}}{{else}}{{end}}/0/99/{{range .Categories}}{{.}}{{end}}"
rows: rows:
selector: "#searchResult tbody tr:has(td.vertTh)" selector: "#searchResult tbody tr:has(td.vertTh)"
fields: fields:

View File

@@ -119,7 +119,7 @@
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
q: "{{ .Query.Keywords }}" q: "{{ .Query.Keywords }}"
rows: rows:
selector: table#browsetable > tbody > tr:has(a) selector: table#browsetable > tbody > tr:has(a[href^="/details.php?id="])
fields: fields:
category: category:
selector: a[href^="/browse.php?q="] selector: a[href^="/browse.php?q="]
@@ -155,7 +155,7 @@
selector: td:nth-child(5) selector: td:nth-child(5)
filters: filters:
- name: dateparse - name: dateparse
args: "27 March 2017" args: "2 April 2017 +05:50"
downloadvolumefactor: downloadvolumefactor:
case: case:
"img[title=\"Free Torrent!\"]": "0" "img[title=\"Free Torrent!\"]": "0"