Skip to content

Commit

Permalink
desitorrents: smarter fix for #9849
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Oct 23, 2020
1 parent 5b8b127 commit 73956a3
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions src/Jackett.Common/Definitions/desitorrents.yml
Expand Up @@ -111,14 +111,14 @@ settings:
- name: sort
type: select
label: Sort requested from site
# while the grabs and date columns are merged due (see #9849), the time sort on the website fails with "selected sorting wrong: time".
# default: "time"
default: "relevance"
# while the grabs and date columns are merged due (see #9849), the time sort on the website fails with: "selected sorting wrong: time".
# default: time
default: relevance
options:
# "time": "created"
"seeders": "seeders"
"size": "size"
"relevance": "title"
# time: created
seeders: seeders
size: size
relevance: title

login:
path: login.php?from=index1
Expand Down Expand Up @@ -153,6 +153,8 @@ search:
args: ["\\", ""]
- name: re_replace
args: ["\",\"paging.*", ""]
- name: re_replace
args: ["</th<th>", "</th><th>"] # fix for #9849
- name: prepend
args: "<table>"
- name: append
Expand Down Expand Up @@ -252,17 +254,10 @@ search:
leechers:
selector: th:nth-child(10)
grabs:
# issue #9849 the ajax stream contains <th>27</th<th>2020-10-05 03:55:34</th> (note the broken th terminator for grabs)
selector: th:nth-child(11)
filters:
- name: regexp
args: ^(\d+)\d{4}-
date:
# selector: th:nth-child(12) issue #9849
selector: th:nth-child(11)
selector: th:nth-child(12)
filters:
- name: regexp
args: (\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})
- name: append
args: " +00:00" # GMT
- name: dateparse
Expand Down

0 comments on commit 73956a3

Please sign in to comment.