1
0
Fork 0
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:
Bogdan 2024-12-31 21:52:18 +02:00
parent 3ad998b34c
commit 9013b6adc6

View file

@ -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