mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
hhanclub: use episode number from description in titles
This commit is contained in:
@@ -114,6 +114,12 @@ search:
|
|||||||
selector: div.w-full:has(a[href^="details.php?id="])
|
selector: div.w-full:has(a[href^="details.php?id="])
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
|
_episode_number:
|
||||||
|
selector: div.torrent-title > div > div
|
||||||
|
optional: true
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "第(\\d+(?:-\\d+)?)集"
|
||||||
category:
|
category:
|
||||||
selector: a[href^="?cat[]="]
|
selector: a[href^="?cat[]="]
|
||||||
attribute: href
|
attribute: href
|
||||||
@@ -122,6 +128,9 @@ search:
|
|||||||
args: cat[]
|
args: cat[]
|
||||||
title:
|
title:
|
||||||
selector: a[href^="details.php?id="]
|
selector: a[href^="details.php?id="]
|
||||||
|
filters:
|
||||||
|
- name: re_replace
|
||||||
|
args: ["\\b(S\\d+)\\b", "{{ if .Result._episode_number }}$1E{{ .Result._episode_number }}{{ else }}$1{{ end }}"]
|
||||||
details:
|
details:
|
||||||
selector: a[href^="details.php?id="]
|
selector: a[href^="details.php?id="]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
Reference in New Issue
Block a user