diff --git a/src/Jackett.Common/Definitions/rockbox.yml b/src/Jackett.Common/Definitions/rockbox.yml index f4d779a3d..5f47b17c7 100644 --- a/src/Jackett.Common/Definitions/rockbox.yml +++ b/src/Jackett.Common/Definitions/rockbox.yml @@ -16,6 +16,30 @@ search: [q] music-search: [q, album, artist, label, year] + settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: sort + type: select + label: Sort requested from site + default: "data" + options: + "data": "created" + "seeds": "seeders" + "size": "size" + "filename": "title" + - name: type + type: select + label: Order requested from site + default: "DESC" + options: + "DESC": "desc" + "ASC": "asc" + login: path: login.php method: form @@ -34,11 +58,18 @@ search: paths: - path: torrents.php - method: get inputs: - search: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}" + search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}" + # 0 all 1 active 2 dead 3 seedwanted + active: 0 + # 0 title 1 title+descr 2 title+subgen + options: 0 + order: "{{ .Config.sort }}" + by: "{{ .Config.type }}" + rows: selector: table.lista[width="100%"] tbody tr:has(a[href^="download.php?id="]) + fields: title: selector: td a[href^="details.php?id="] @@ -74,8 +105,8 @@ grabs: selector: td:nth-child(11) category: - text: "Music" + text: Music downloadvolumefactor: - text: "1" + text: 1 uploadvolumefactor: - text: "1" + text: 1