mirror of
https://github.com/Jackett/Jackett
synced 2025-01-01 04:38:20 +00:00
extratorrent: handle missing category or no-hits. resolves #7108
also handle some date exceptions.
This commit is contained in:
parent
f718052e4a
commit
e215870735
1 changed files with 16 additions and 3 deletions
|
@ -946,9 +946,11 @@
|
|||
|
||||
fields:
|
||||
category:
|
||||
selector: a[href*="/category/"]
|
||||
selector: a[href*="/category/"], a[href="#"]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: replace #7108 provide default for missing category
|
||||
args: ["#", "/category/9/"]
|
||||
- name: regexp
|
||||
args: "/category/(\\d+)/"
|
||||
title:
|
||||
|
@ -963,14 +965,25 @@
|
|||
selector: a[href^="magnet:?xt="]
|
||||
attribute: href
|
||||
date:
|
||||
selector: td:nth-last-of-type(5):contains(":")
|
||||
selector: td:nth-last-of-type(5):contains("Y-day-"), td:nth-last-of-type(5):contains("Today-")
|
||||
optional: true
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["\xA0", " "]
|
||||
- name: re_replace
|
||||
args: ["(Today-.*)", "Today"]
|
||||
- name: re_replace
|
||||
args: ["(Y-day-.*)", "Yesterday"]
|
||||
- name: fuzzytime
|
||||
date:
|
||||
selector: td:nth-last-of-type(5):contains(":"):not(:contains("Y-day-")):not(:contains("Today-"))
|
||||
optional: true
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["\xA0", " "]
|
||||
- name: fuzzytime
|
||||
date:
|
||||
selector: td:nth-last-of-type(5):not(:contains(":"))
|
||||
selector: td:nth-last-of-type(5):not(:contains(":")):not(:contains("Y-day-")):not(:contains("Today-"))
|
||||
optional: true
|
||||
filters:
|
||||
- name: replace
|
||||
|
|
Loading…
Reference in a new issue