1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-12 15:14:50 +00:00

ptmsg: add douban query support

This commit is contained in:
Garfield69 2022-07-23 07:13:36 +12:00
parent a3d0bc0e0a
commit b1a00e01a9

View file

@ -23,8 +23,8 @@ caps:
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep, imdbid] tv-search: [q, season, ep, imdbid, doubanid]
movie-search: [q, imdbid] movie-search: [q, imdbid, doubanid]
music-search: [q] music-search: [q]
book-search: [q] book-search: [q]
@ -73,13 +73,13 @@ search:
- path: torrents.php - path: torrents.php
inputs: inputs:
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}" $raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if .Query.DoubanID }}/{{ .Query.DoubanID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 incldead, 1 active, 2 dead # 0 incldead, 1 active, 2 dead
incldead: 0 incldead: 0
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30% # 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%
spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 title, 1 descr, 3 uploader, 4 imdburl # 0 title, 1 descr, 3 uploader, 4 imdburl (4 does not appear to work).
search_area: "{{ if .Query.IMDBID }}4{{ else }}0{{ end }}" search_area: "{{ if or .Query.IMDBID .Query.DoubanID }}1{{ else }}0{{ end }}"
# 0 AND, 1 OR, 2 exact # 0 AND, 1 OR, 2 exact
search_mode: 0 search_mode: 0
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"