karagarga: add filename to title. #1241

This commit is contained in:
Garfield69 2020-06-01 11:20:18 +12:00
parent d255a2fafd
commit 1384e38818
1 changed files with 9 additions and 1 deletions

View File

@ -74,11 +74,19 @@ search:
selector: a[href^="browse.php?country="] img
attribute: title
optional: true
filename:
selector: a[href^="/down.php/"]
attribute: href
filters:
- name: regexp
args: "(?:/down\\.php/\\d+/)(.+?)\\.torrent"
- name: re_replace
args: ["%20", "."]
title:
selector: a[href^="details.php?id="]
filters:
- name: append
args: " {{ .Result.year }} {{ .Result.flag }}"
args: " {{ .Result.year }} {{ .Result.flag }} [{{ .Result.filename }}]"
details:
selector: a[href^="details.php?id="]
attribute: href