1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-11 22:52:58 +00:00

gimmepeers: tvmazeid search, freeleech filter and dlvf, strip req from titles. #15089

This commit is contained in:
ilike2burnthing 2024-02-26 02:42:10 +00:00 committed by GitHub
parent 4b17b77c02
commit 80db436407
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ caps:
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep, genre] tv-search: [q, season, ep, tvmazeid, genre]
movie-search: [q, imdbid, genre] movie-search: [q, imdbid, genre]
music-search: [q] music-search: [q]
book-search: [q] book-search: [q]
@ -57,6 +57,10 @@ settings:
- name: password - name: password
type: password type: password
label: Password label: Password
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@ -95,16 +99,16 @@ search:
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}{{ if .Query.Genre }} genre:{{ .Query.Genre }}{{ else }}{{ end }}" search: "{{ if or .Query.IMDBID .Query.TVMazeID }}{{ or .Query.IMDBID .Query.TVMazeID }}{{ else }}{{ .Keywords }}{{ end }}{{ if .Query.Genre }} genre:{{ .Query.Genre }}{{ else }}{{ end }}"
# 0 title, 1 nfo, 2 filelist, 3 title+nfo, 4 imdb # 0 title, 1 nfo, 2 filelist, 3 title+nfo, 4 imdb, 5 tvmaze
blah: "{{ if .Query.IMDBID }}4{{ else }}{{ end }}{{ if .Query.Genre }}3{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.Genre }}{{ else }}0{{ end }}" blah: "{{ if .Query.IMDBID }}4{{ else }}{{ end }}{{ if .Query.TVMazeID }}5{{ else }}{{ end }}{{ if .Query.Genre }}3{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.TVMazeID .Query.Genre }}{{ else }}0{{ end }}"
# 0 active only, 1 dead only # 0 active only, 1 dead only
incldead: 0 incldead: 0
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
rows: rows:
selector: table.browsetable:not(:has(td.gp_sub_nav):contains("Top 25")) tbody tr:has(a[href^="download.php"]) selector: "table.browsetable:not(:has(td.gp_sub_nav):contains(\"Top 25\")) tbody tr:has(a[href^=\"download.php\"]){{ if .Config.freeleech }}:has(img[src=\"/core/design/icons/fleech.png\"]){{ else }}{{ end }}"
fields: fields:
category: category:
@ -115,6 +119,9 @@ search:
args: cat args: cat
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
filters:
- name: re_replace
args: ["(?i)\\s*{REQ}$", ""]
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
@ -156,7 +163,9 @@ search:
leechers: leechers:
selector: td:nth-last-child(2) selector: td:nth-last-child(2)
downloadvolumefactor: downloadvolumefactor:
text: 1 case:
img[src="/core/design/icons/fleech.png"]: 0
"*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a # engine n/a