diff --git a/README.md b/README.md index b2cefd235..62ac08fe8 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,7 @@ Developer note: The software implements the [Torznab](https://github.com/Sonarr/ * Torrent9 * Torernt9 clone (torrents9.ch) * Torrentz2 + * Torrof * World Wide Torrents * YTS.ag * Zooqle diff --git a/src/Jackett.Common/Definitions/torrof.yml b/src/Jackett.Common/Definitions/torrof.yml new file mode 100644 index 000000000..eb91ac3b9 --- /dev/null +++ b/src/Jackett.Common/Definitions/torrof.yml @@ -0,0 +1,117 @@ +--- + site: torrof + name: Torrof + description: "Torrof (Torrentoff) is meta-search engine for torrents" + language: en-us + type: public + encoding: UTF-8 + links: + - http://www.torrof.com/ + + caps: + categories: + "Software": PC + "Book": Books + "Video": Movies + "Music": Audio + "Other": Other + "Picture": Other/Misc + + modes: + search: [q] + tv-search: [q, season, ep] + movie-search: [q] + + settings: + - name: category + type: select + label: Category + default: "_" + options: + "_": "All" + "Book": "Book" + "Music": "Music" + "Other": "Other" + "Picture": "Picture" + "Software": "Software" + "Video": "Video" + - name: verified + type: select + label: Verified + default: "_" + options: + "_": "Any" + "1": "Verified Only" + - name: sort + type: select + label: Sort + default: "_" + options: + "_": "Default" + "creation_date desc": "Age desc" + "creation_date asc": "Age asc" + "total_size desc": "Size desc" + "total_size asc": "Size asc" + + download: + selector: section.file-info a:nth-child(2) + + search: + paths: + - path: "{{if .Keywords}}{{.Keywords}}{{else}}test{{end}}" + method: post + inputs: + # torrof does not support trending/latest/new pages + text: "{{if .Keywords}}{{.Keywords}}{{else}}test{{end}}" + size: "0:inf" + date: "0:inf" + verified_only: "{{ re_replace .Config.verified \"_\" \"\" }}" + category: "{{ re_replace .Config.category \"_\" \"\" }}" + tags: "" + mode: "titles" + sort: "{{ re_replace .Config.sort \"_\" \"\" }}" + page: "0" + + rows: + # ignore adverts + selector: tr:has(a[href^="/view/"]) + filters: + # torrof uses fuzzy search logic + - name: andmatch + + fields: + title: + selector: td:nth-child(2) a:nth-child(1) + category: + selector: td:nth-child(1) span + attribute: title + filters: + # grab first word + - name: split + args: [" ", 0] + details: + selector: td:nth-child(2) a:nth-child(1) + attribute: href + download: + selector: td:nth-child(2) a:nth-child(1) + attribute: href + date: + selector: td:nth-child(4) + filters: + - name: dateparse + args: "Jan 2006" + size: + selector: td:nth-child(3) span:nth-child(1) + files: + selector: td:nth-child(3) span:nth-last-child(1) + filters: + - name: replace + args: [" Files", ""] + seeders: + text: "1" + leechers: + text: "1" + downloadvolumefactor: + text: "0" + uploadvolumefactor: + text: "1"