2020-05-25 03:07:03 +00:00
---
id : hdc
name : HDC
description : "HDC (HDCiTY) is a CHINESE Private Torrent Tracker for HD MOVIES / TV / GENERAL"
2021-09-07 23:09:51 +00:00
language : zh-CN
2020-05-25 03:07:03 +00:00
type : private
encoding : UTF-8
links :
- https://hdcity.city/
- https://hdcity.work/
- https://hdcity.leniter.org/
- https://hdcity4.leniter.org/
caps :
categorymappings :
- {id: 401, cat: Movies, desc : "Movies/电影" }
- {id: 402, cat: TV, desc : "Series/剧集" }
- {id: 404, cat: TV/Documentary, desc : "Doc/档案记录" }
- {id: 405, cat: TV/Anime, desc : "Anim/动漫" }
- {id: 403, cat: TV, desc : "Shows/节目" }
- {id: 406, cat: Audio/Video, desc : "MV/音乐视频" }
- {id: 407, cat: TV/Sport, desc : "Sports/体育" }
- {id: 408, cat: Audio, desc : "Audio/音频" }
- {id: 727, cat: XXX, desc : "XXX/家长指引" }
- {id: 728, cat: Other, desc : "Edu/文档/教材" }
- {id: 729, cat: PC, desc : "Soft/软件" }
- {id: 409, cat: Other, desc : "Other/其他" }
modes :
2020-10-19 03:56:16 +00:00
search : [ q]
2020-05-25 03:07:03 +00:00
tv-search : [ q, season, ep, imdbid]
movie-search : [ q, imdbid]
music-search : [ q]
settings :
- name : cookie
type : text
label : Cookie
- name : info
type : info
label : How to get the Cookie
2020-06-04 20:37:51 +00:00
default : "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
2020-09-09 07:02:34 +00:00
- name : freeleech
type : checkbox
label : Search freeleech only
default : false
2020-05-25 03:07:03 +00:00
- name : sort
type : select
label : Sort requested from site
2020-10-23 18:32:22 +00:00
default : 4
2020-05-25 03:07:03 +00:00
options :
2020-10-23 18:32:22 +00:00
4 : created
7 : seeders
5 : size
2020-05-25 03:07:03 +00:00
- name : type
type : select
label : Order requested from site
2020-10-23 18:32:22 +00:00
default : desc
2020-05-25 03:07:03 +00:00
options :
2020-10-23 18:32:22 +00:00
desc : desc
asc : asc
2020-05-25 03:07:03 +00:00
- name : info_Results
type : info
label : Settings for Results
default : "To use this indexer please set the following on your HDC account <b>profile</b>:<li><i>Site Language:</i><b> English</b><li><i>Torrent List Profile: </i><b>Default Modern [preview]</b><li><i>Time Type: </i><b>Time Added</b><li><i>Torrents per page:</i><b> 100</b>"
login :
method : cookie
inputs :
cookie : "{{ .Config.cookie }}"
test :
path : pt
selector : a[href^="logout?key="]
search :
paths :
# https://hdcity.city/pt?incldead=0&spstate=0&inclbookmarked=0&iwannaseethis=shanghai+triad&search_area=0&search_mode=0
# https://hdcity.city/pt?incldead=0&spstate=0&inclbookmarked=0&iwannaseethis=115012&search_area=4&search_mode=0
- path : pt
inputs :
$raw : "{{ range .Categories }}cat{{.}}=1&{{end}}"
iwannaseethis : "{{ if .Query.IMDBID }}{{ .Query.IMDBIDShort }}{{ else }}{{ .Keywords }}{{ end }}"
2020-09-09 07:02:34 +00:00
# 0 incldead, 1 active, 2 dead
2020-05-25 03:07:03 +00:00
incldead : 0
2020-09-09 07:02:34 +00:00
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%
spstate : "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
# 0 title, 1 descr, 3 uploader, 4 imdb number
2020-05-25 03:07:03 +00:00
search_area : "{{ if .Query.IMDBID }}4{{ else }}0{{ end }}"
2020-09-09 07:02:34 +00:00
# 0 AND, 1 OR, 2 exact
2020-05-25 03:07:03 +00:00
search_mode : 0
sort : "{{ .Config.sort }}"
type : "{{ .Config.type }}"
rows :
selector : div.trblock
fields :
title :
selector : div.trtop a[href^="t-"]
category :
selector : div.trm
attribute : style
filters :
- name : regexp
args : (\d+)
details :
selector : div.trtop a[href^="t-"]
attribute : href
download :
selector : a[href^="download?id="]
attribute : href
2020-11-07 23:43:33 +00:00
poster :
2020-05-25 03:07:03 +00:00
selector : div.trp:not(:has(img[src$="poster.jpg"])) img
attribute : src
2021-10-22 03:22:49 +00:00
imdbid :
2020-05-25 03:07:03 +00:00
selector : a[href*="imdb.com/title/tt"]
attribute : href
size :
selector : div.trbo div:nth-last-child(8)
remove : i
2021-10-22 03:22:49 +00:00
seeders_optional :
2020-05-25 03:07:03 +00:00
selector : div.trbo div:nth-last-child(7)
optional : true
filters :
- name : re_replace
args : [ "\\s" , "0" ]
2021-10-22 03:22:49 +00:00
seeders :
text : "{{ if .Result.seeders_optional }}{{ .Result.seeders_optional }}{{ else }}0{{ end }}"
leechers_optional :
2020-05-25 03:07:03 +00:00
selector : div.trbo div:nth-last-child(6)
optional : true
filters :
- name : re_replace
args : [ "\\s" , "0" ]
2021-10-22 03:22:49 +00:00
leechers :
text : "{{ if .Result.leechers_optional }}{{ .Result.leechers_optional }}{{ else }}0{{ end }}"
grabs_optional :
2020-05-25 03:07:03 +00:00
selector : div.trbo div:nth-last-child(5)
optional : true
filters :
- name : re_replace
args : [ "\\s" , "0" ]
2021-10-22 03:22:49 +00:00
grabs :
text : "{{ if .Result.grabs_optional }}{{ .Result.grabs_optional }}{{ else }}0{{ end }}"
2020-05-25 03:07:03 +00:00
date :
remove : a, span
selector : div[style="float:right;"]
filters :
- name : replace
args : [ "@" , "" ]
- name : append
2020-11-14 22:12:59 +00:00
args : " +08:00" # CST
2020-05-25 03:07:03 +00:00
- name : dateparse
args : "2006-01-02 15:04:05 -07:00"
downloadvolumefactor :
case :
img.pro_free : 0
img.pro_free2up : 0
img.pro_50pctdown : 0.5
img.pro_50pctdown2up : 0.5
img.pro_30pctdown : 0.3
"*": 1
uploadvolumefactor :
case :
img.pro_50pctdown2up : 2
img.pro_free2up : 2
img.pro_2up : 2
"*": 1
# engine n/a (likely based on NexusPHP)