mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
limetorrentsclone: add workaround for categories
This commit is contained in:
@@ -25,6 +25,7 @@ caps:
|
|||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
music-search: [q]
|
music-search: [q]
|
||||||
|
book-search: [q]
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
- name: downloadlink
|
- name: downloadlink
|
||||||
@@ -77,17 +78,6 @@ search:
|
|||||||
selector: .table2 > tbody > tr[bgcolor]
|
selector: .table2 > tbody > tr[bgcolor]
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
|
||||||
selector: td:nth-child(2)
|
|
||||||
optional: true
|
|
||||||
default: Other
|
|
||||||
filters:
|
|
||||||
- name: split
|
|
||||||
args: ["-", 1]
|
|
||||||
- name: replace
|
|
||||||
args: [" in ", ""]
|
|
||||||
- name: replace
|
|
||||||
args: [".", ""]
|
|
||||||
title:
|
title:
|
||||||
selector: div.tt-name > a[href^="/"]
|
selector: div.tt-name > a[href^="/"]
|
||||||
attribute: href
|
attribute: href
|
||||||
@@ -96,6 +86,18 @@ search:
|
|||||||
args: "/(.+?)-torrent-\\d+\\.html"
|
args: "/(.+?)-torrent-\\d+\\.html"
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["-", " "]
|
args: ["-", " "]
|
||||||
|
category_is_tv_show:
|
||||||
|
text: "{{ .Result.title }}"
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "\\b(S\\d+(?:E\\d+)?)\\b"
|
||||||
|
category:
|
||||||
|
selector: td:nth-child(2)
|
||||||
|
optional: true
|
||||||
|
default: "{{ if .Result.category_is_tv_show }}TV shows{{ else }}Other{{ end }}"
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: " in (.+?)$"
|
||||||
details:
|
details:
|
||||||
selector: div.tt-name > a[href^="/"]
|
selector: div.tt-name > a[href^="/"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user