mirror of https://github.com/Jackett/Jackett
uhdbits: fix parsing the last word as release group for music (#14031)
This commit is contained in:
parent
0acade153b
commit
1f30b653d1
|
@ -94,13 +94,15 @@ search:
|
|||
selector: table#torrent_table > tbody > tr.torrent
|
||||
|
||||
fields:
|
||||
category:
|
||||
# note: there are optional extra colums
|
||||
category_id:
|
||||
selector: a[href^="torrents.php?filter_cat"]
|
||||
attribute: href
|
||||
filters:
|
||||
- name: regexp
|
||||
args: "\\[(\\d+)\\]"
|
||||
# note: there are optional extra colums
|
||||
category:
|
||||
text: "{{ .Result.category_id }}"
|
||||
download:
|
||||
selector: a[href^="torrents.php?action=download&id="]
|
||||
attribute: href
|
||||
|
@ -157,7 +159,7 @@ search:
|
|||
- name: replace
|
||||
args: [" / ", " "]
|
||||
- name: re_replace
|
||||
args: ["\\b([\\w@\\.]+)$", " -$1"]
|
||||
args: ["\\s+([\\w@\\.\\[\\]\\$\\-\\!\\u2122]+)$", " -$1"]
|
||||
- name: re_replace
|
||||
args: ["\\bEncode\\b", "Blu-Ray"]
|
||||
- name: re_replace
|
||||
|
@ -166,6 +168,16 @@ search:
|
|||
args: ["\\bRemux\\b", "Blu-Ray Remux"]
|
||||
- name: re_replace
|
||||
args: ["\\s+", " "]
|
||||
_release_info_music:
|
||||
selector: div.torrent_info
|
||||
remove: .torrent_label.red, .torrent_label.blink_me
|
||||
filters:
|
||||
- name: re_replace
|
||||
args: ["[\\s\\/]+$", ""]
|
||||
- name: replace
|
||||
args: [" / ", " "]
|
||||
- name: re_replace
|
||||
args: ["\\s+", " "]
|
||||
title:
|
||||
selector: div.group_info
|
||||
remove: span, div.tags, div.torrent_info
|
||||
|
@ -174,5 +186,5 @@ search:
|
|||
args: ["(?i)\\bSeason (\\d+)\\b", "S$1"]
|
||||
- name: trim
|
||||
- name: append
|
||||
args: " {{ .Result._release_info }}"
|
||||
args: " {{ if eq .Result.category_id \"2\" }}{{ .Result._release_info_music }}{{ else }}{{ .Result._release_info }}{{ end }}"
|
||||
# Gazelle
|
||||
|
|
Loading…
Reference in New Issue