Skip to content

Commit

Permalink
7torrents: optional cat config support for torznab app compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Oct 21, 2020
1 parent 4a30195 commit 2834154
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/Jackett.Common/Definitions/7torrents.yml
Expand Up @@ -10,40 +10,47 @@ links:

caps:
categories:
1: Other
1: TV
2: Movies
3: Other

modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]

settings:
- name: info
type: info
default: 7torrents does not use categories. In your software Indexer settings, set the category to 7000.
- name: category-id
type: select
label: The 7torrents web site does not provide categories. Select the category you want Jackett to set on all results returned.
default: 3
options:
1: TV
2: Movies
3: Other
- name: sort
type: select
label: Sort requested from site
default: "created"
default: created
options:
"created": "created"
"length": "size"
"seeders": "seeders"
created: created
length: size
seeders: seeders

search:
# https://www.7torrents.cc/search?query=2020&sort=created
paths:
- path: search
inputs:
query: "{{ if .Keywords }}{{ .Keywords }}{{else}} {{end}}"
query: "{{ if .Keywords }}{{ .Keywords }}{{ else }} {{ end }}"
sort: "{{ .Config.sort }}"

rows:
selector: div.media

fields:
category:
text: 1
text: "{{ .Config.category-id }}"
title:
selector: div.media
attribute: data-name
Expand Down

0 comments on commit 2834154

Please sign in to comment.