1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-25 15:42:48 +00:00

microbit: add imdbid search support. #4859

This commit is contained in:
Garfield69 2020-03-21 09:50:06 +13:00
parent aac2e42f9e
commit 869b09f574
3 changed files with 12 additions and 9 deletions

View file

@ -133,6 +133,7 @@
active: 0 active: 0
order: "{{ .Config.sort }}" order: "{{ .Config.sort }}"
by: "{{ .Config.type }}" by: "{{ .Config.type }}"
# does not support imdbid searches and does not return imdb link in results
rows: rows:
selector: div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href^="index.php?page=torrents&category="]) selector: div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href^="index.php?page=torrents&category="])

View file

@ -178,6 +178,7 @@
langue: 0 langue: 0
# freeleech oui (yes) non (no) peuimporte (ignore) # freeleech oui (yes) non (no) peuimporte (ignore)
tl: peuimporte tl: peuimporte
# does not support imdbid searches and does not return imdb link in results
rows: rows:
selector: tr:has(a[onmouseover]) selector: tr:has(a[onmouseover])

View file

@ -39,9 +39,9 @@
- {id: 10, cat: Audio/MP3, desc: "Zene/MP3"} - {id: 10, cat: Audio/MP3, desc: "Zene/MP3"}
modes: modes:
search: [q] search: [q, imdbid]
tv-search: [q, season, ep] tv-search: [q, season, ep, imdbid]
movie-search: [q] movie-search: [q, imdbid]
settings: settings:
- name: username - name: username
@ -87,14 +87,15 @@
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{ range .Categories }}cat[]={{.}}&{{end}}" $raw: "{{ range .Categories }}cat[]={{.}}&{{end}}"
search: "{{ if .Keywords }}{{ .Keywords }}{{else}}{{end}}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
searchOpened: 1 searchOpened: 1
# 0 title 1 descr 2 uploader # 0 title 1 descr 2 uploader
searchWhat: 0 searchWhat: "{{ if .Query.IMDBID }}1{{else}}0{{end}}"
# 0 active 1 active&dead 2 dead 3 dl multiplier 4 ul multiplier 5 dl&ul multiplier 6 bad torrent 7 unverified torrent 8 my torrent # 0 active 1 active&dead 2 dead 3 dl multiplier 4 ul multiplier 5 dl&ul multiplier 6 bad torrent 7 unverified torrent 8 my torrent
filterOptions: 1 filterOptions: 1
orderby: "{{ .Config.sort }}" orderby: "{{ .Config.sort }}"
ordertype: "{{ .Config.type }}" ordertype: "{{ .Config.type }}"
# does not return imdb link in results
rows: rows:
selector: table.torrentList > tbody > tr:has(a[href^="download.php?id="]), table.torrentList > tbody > tr:has(td[onclick^="window.location='download.php?id="]) selector: table.torrentList > tbody > tr:has(a[href^="download.php?id="]), table.torrentList > tbody > tr:has(td[onclick^="window.location='download.php?id="])
@ -151,4 +152,4 @@
filters: filters:
- name: regexp - name: regexp
args: (\d+) args: (\d+)
# engine n/a # custom 3.0