amigosshare: Add Brazilian string to title when video contains Brazilian Portuguese audio stream (#8447)

This commit is contained in:
Wagner Caixeta 2020-04-30 23:49:04 -03:00 committed by GitHub
parent a86a6de887
commit 314394918c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -173,6 +173,9 @@
_type:
selector: div.list-group-item-content p.m-0 span.badge-info:contains("Rip"), div.list-group-item-content p.m-0 span.badge-info:contains("WEB-"), div.list-group-item-content p.m-0 span.badge-info:contains("TV"), div.list-group-item-content p.m-0 span.badge-info:contains("Blu-Ray"), div.list-group-item-content p.m-0 span.badge-info:contains("BD50"), div.list-group-item-content p.m-0 span.badge-info:contains("MUX"), div.list-group-item-content p.m-0 span.badge-info:contains("DVD"), div.list-group-item-content p.m-0 span.badge-info:contains("320"), div.list-group-item-content p.m-0 span.badge-info:contains("CAM"), div.list-group-item-content p.m-0 span.badge-info:contains("rip")
optional: true
_language:
selector: div.list-group-item-content p.m-0 span.badge-primary[style$="#b6249d;"]
optional: true
title:
selector: a[href^="torrents-details.php?id="]
filters:
@ -188,6 +191,11 @@
# add the type to the title
- name: append
args: "{{if .Result._type}} {{.Result._type}}{{else}}{{end}}"
# add audio to the title
- name: append
args: "{{if .Result._language}} {{.Result._language}}{{else}}{{end}}"
- name: re_replace
args: ["(Dual-Audio|Dublado)", "Brazilian $1"]
details:
selector: a[href^="torrents-details.php?id="]
attribute: href