1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-08 21:06:25 +00:00

et-cd: optional cat config support for torznab app compatibility

also update the date processing
add date TZ
This commit is contained in:
Garfield69 2020-10-21 20:13:47 +13:00
parent 26d5f8a4aa
commit 12ca9ba487

View file

@ -14,7 +14,9 @@ legacylinks:
caps: caps:
categories: categories:
other: Other 1: TV
2: Movies
3: Other
modes: modes:
search: [q] search: [q]
@ -22,9 +24,14 @@ caps:
movie-search: [q] movie-search: [q]
settings: settings:
- name: info - name: category-id
type: info type: select
default: ExtraTorrent-cd does not use categories. In your software Indexer settings, set the category to 7000. label: The ExtraTorrent 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
search: search:
paths: paths:
@ -41,7 +48,7 @@ search:
fields: fields:
category: category:
text: other # issue #8228 text: "{{ .Config.category-id }}"
title: title:
selector: a[href*="/torrent/"][title^="view"] selector: a[href*="/torrent/"][title^="view"]
details: details:
@ -54,31 +61,29 @@ search:
selector: a[href^="magnet:?xt="] selector: a[href^="magnet:?xt="]
attribute: href attribute: href
date: date:
selector: td:nth-last-of-type(5):contains("Y-day-"), td:nth-last-of-type(5):contains("Today-") # Y-day-2020 (seriously!?!, like there's a Y-day-2019 ?)
# Today-22:03
selector: td:nth-last-of-type(5):contains("day")
optional: true optional: true
filters: filters:
- name: replace - name: replace
args: ["\xA0", " "] args: ["\xA0", " "]
- name: re_replace - name: re_replace
args: ["(Today-.*)", "Today"] args: ["(Today-)", "Today "]
- name: re_replace - name: re_replace
args: ["(Y-day-.*)", "Yesterday"] args: ["(Y-day-.*)", "Yesterday"]
- name: fuzzytime - name: fuzzytime
date: date:
selector: td:nth-last-of-type(5):contains(":"):not(:contains("Y-day-")):not(:contains("Today-")) # 12-27-2019
optional: true selector: td:nth-last-of-type(5):not(:contains(":")):not(:contains("day"))
filters:
- name: replace
args: ["\xA0", " "]
- name: fuzzytime
date:
selector: td:nth-last-of-type(5):not(:contains(":")):not(:contains("Y-day-")):not(:contains("Today-"))
optional: true optional: true
filters: filters:
- name: replace - name: replace
args: ["\xA0", "-"] args: ["\xA0", "-"]
- name: append
args: " -07:00" # PDT
- name: dateparse - name: dateparse
args: "01-02-2006" args: "01-02-2006 -07:00"
size: size:
selector: td:nth-last-of-type(4) selector: td:nth-last-of-type(4)
seeders: seeders: