yts: swap url scheme with host sitelink. #12494

This commit is contained in:
Garfield69 2021-11-02 08:46:20 +13:00
parent 64121e4630
commit b7577ef3ed
1 changed files with 16 additions and 0 deletions

View File

@ -88,14 +88,30 @@ search:
# append type: BRRip or WEBRip, resolves #3558 via #4577 # append type: BRRip or WEBRip, resolves #3558 via #4577
- name: append - name: append
args: ".{{ .Result.year }}.{{ .Result.quality }}.{{ if eq .Result.type \"web\" }}WEBRip{{ else }}BRRip{{ end }}-YTS" args: ".{{ .Result.year }}.{{ .Result.quality }}.{{ if eq .Result.type \"web\" }}WEBRip{{ else }}BRRip{{ end }}-YTS"
sitelink_trimmed:
text: "{{ .Config.sitelink }}"
filters:
- name: replace
args: ["https://", ""]
- name: replace
args: ["/", ""]
details: details:
selector: ..url selector: ..url
filters:
- name: replace
args: ["yts.mx", "{{ .Result.sitelink_trimmed }}"] # fix for 12494
download: download:
selector: url selector: url
filters:
- name: replace
args: ["yts.mx", "{{ .Result.sitelink_trimmed }}"] # fix for 12494
infohash: infohash:
selector: hash selector: hash
poster: poster:
selector: ..large_cover_image selector: ..large_cover_image
filters:
- name: replace
args: ["yts.mx", "{{ .Result.sitelink_trimmed }}"] # fix for 12494
imdbid: imdbid:
selector: ..imdb_code selector: ..imdb_code
date: date: