mirror of
https://github.com/Jackett/Jackett
synced 2025-01-04 22:41:49 +00:00
hhanclub: use episode number from description in titles
This commit is contained in:
parent
3ad998b34c
commit
9013b6adc6
1 changed files with 9 additions and 0 deletions
|
@ -114,6 +114,12 @@ search:
|
|||
selector: div.w-full:has(a[href^="details.php?id="])
|
||||
|
||||
fields:
|
||||
_episode_number:
|
||||
selector: div.torrent-title > div > div
|
||||
optional: true
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "第(\\d+(?:-\\d+)?)集"
|
||||
category:
|
||||
selector: a[href^="?cat[]="]
|
||||
attribute: href
|
||||
|
@ -122,6 +128,9 @@ search:
|
|||
args: cat[]
|
||||
title:
|
||||
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:
|
||||
selector: a[href^="details.php?id="]
|
||||
attribute: href
|
||||
|
|
Loading…
Reference in a new issue