diff --git a/src/Jackett.Common/Definitions/ccfbits.yml b/src/Jackett.Common/Definitions/ccfbits.yml index 81267ccca..f82068826 100644 --- a/src/Jackett.Common/Definitions/ccfbits.yml +++ b/src/Jackett.Common/Definitions/ccfbits.yml @@ -42,9 +42,33 @@ - {id: 22, cat: Other, desc: "杂项"} modes: - search: [q] - tv-search: [q, season, ep] - movie-search: [q] + search: [q, imdbid] + tv-search: [q, season, ep, imdbid] + movie-search: [q, imdbid] + + settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: sort + type: select + label: Sort requested from site + default: "added" + options: + "added": "created" + "seeders": "seeders" + "size": "size" + "name": "title" + - name: type + type: select + label: Order requested from site + default: "DESC" + options: + "DESC": "desc" + "ASC": "asc" login: path: takelogin.php @@ -60,13 +84,14 @@ search: paths: - path: browse.php - method: get inputs: $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" - search: "{{ .Keywords }}" + search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" + # 0 active 1 incldead 2 deadonly incldead: 1 - sort: added - d: DESC + fullsearch: "{{ if .Query.IMDBID }}1{{else}}{{end}}" + sort: "{{ .Config.sort }}" + d: "{{ .Config.sort }}" rows: selector: table[border="1"][cellpadding="5"] > tbody > tr:has(a[href^="details.php?id="]) @@ -86,7 +111,7 @@ args: cat details: selector: a[href^="details.php?id="] - attribute: href + attribute: href download: selector: a[href^="download.php/"] attribute: href @@ -122,7 +147,10 @@ "*": 1 uploadvolumefactor: case: + "font:has([src=\"/pic/arrowup1.gif\"]):contains(\"1.5x\")": 1.5 + "font:has([src=\"/pic/arrowup1.gif\"]):contains(\"2x\")": 2 "*": 1 description: selector: td:nth-child(2) > table > tbody > tr:nth-child(2) remove: a, img +# Discuz! 7.2