ydypt: add douban query support

also update indexer description
This commit is contained in:
Garfield69 2022-07-22 20:33:49 +12:00
parent b936d2f9e4
commit 658685f3ae
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
---
id: ydypt
name: YDYPT
description: "YDYPT is a CHINESE Private Torrent Tracker for 3X"
description: "YDYPT is a CHINESE Private Torrent Tracker for MOVIES / TV / 3X"
language: zh-CN
type: private
encoding: UTF-8
@ -25,8 +25,8 @@ caps:
modes:
search: [q]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
tv-search: [q, season, ep, imdbid, doubanid]
movie-search: [q, imdbid, doubanid]
settings:
- name: username
@ -80,7 +80,7 @@ search:
- path: torrents.php
inputs:
$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
incldead: 0
# 0 all, 1 normal, 2 popular, 3 classic, 4 recomended, 5 0day, 6 imdb top 250
@ -88,7 +88,7 @@ search:
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%, 8 all promotions
spstate: "{{ if .Config.freeleech }}8{{ else }}0{{ end }}"
# 0 title, 1 descr, 2 subtitltes, 3 uploader, 4 imdburl
search_area: "{{ if .Query.IMDBID }}4{{ else }}0{{ end }}"
search_area: "{{ if .Query.IMDBID }}4{{ else }}{{ end }}{{ if .Query.DoubanID }}1{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}0{{ end }}"
# 0 AND 1 OR 2 exact
search_mode: 0
sort: "{{ .Config.sort }}"