mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
elitetorrent-biz: handle movies without size.
also clean up code.
This commit is contained in:
@@ -29,9 +29,9 @@ legacylinks:
|
|||||||
|
|
||||||
caps:
|
caps:
|
||||||
categories:
|
categories:
|
||||||
"series": TV
|
series: TV
|
||||||
"peliculas": Movies
|
peliculas: Movies
|
||||||
"other": Other
|
other: Other
|
||||||
|
|
||||||
modes:
|
modes:
|
||||||
search: [q]
|
search: [q]
|
||||||
@@ -69,6 +69,20 @@ search:
|
|||||||
- name: andmatch
|
- name: andmatch
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
|
category_movie:
|
||||||
|
selector: .meta a
|
||||||
|
attribute: href
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "^.*/(peliculas)/.*$"
|
||||||
|
category_tv:
|
||||||
|
selector: .meta a
|
||||||
|
attribute: href
|
||||||
|
filters:
|
||||||
|
- name: regexp
|
||||||
|
args: "^.*/(series)/.*$"
|
||||||
|
category:
|
||||||
|
text: "{{ if or .Result.category_movie .Result.category_tv }}{{ or .Result.category_movie .Result.category_tv }}{{ else }}other{{ end }}"
|
||||||
quality:
|
quality:
|
||||||
selector: span:nth-of-type(2) > i
|
selector: span:nth-of-type(2) > i
|
||||||
filters:
|
filters:
|
||||||
@@ -90,7 +104,7 @@ search:
|
|||||||
args: ["Subtitulado", " SPASUBS"]
|
args: ["Subtitulado", " SPASUBS"]
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["VOSE", ""]
|
args: ["VOSE", ""]
|
||||||
_title:
|
title:
|
||||||
selector: div.imagen > a
|
selector: div.imagen > a
|
||||||
attribute: title
|
attribute: title
|
||||||
# normalize to SXXEYY format
|
# normalize to SXXEYY format
|
||||||
@@ -105,8 +119,8 @@ search:
|
|||||||
args: ["(\\d{2})×(\\d{2})", "S$1E$2"]
|
args: ["(\\d{2})×(\\d{2})", "S$1E$2"]
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["(\\d{1})×(\\d{2})", "S0$1E$2"]
|
args: ["(\\d{1})×(\\d{2})", "S0$1E$2"]
|
||||||
title:
|
- name: append
|
||||||
text: "{{ .Result._title}} {{ .Result.language }} {{ .Result.quality }}"
|
args: " {{ .Result.quality }} {{ .Result.language }}"
|
||||||
details:
|
details:
|
||||||
selector: .meta a
|
selector: .meta a
|
||||||
attribute: href
|
attribute: href
|
||||||
@@ -116,29 +130,15 @@ search:
|
|||||||
poster:
|
poster:
|
||||||
selector: .imagen img
|
selector: .imagen img
|
||||||
attribute: data-src
|
attribute: data-src
|
||||||
category_movie:
|
_size:
|
||||||
selector: .meta a
|
|
||||||
attribute: href
|
|
||||||
filters:
|
|
||||||
- name: regexp
|
|
||||||
args: "^.*/(peliculas)/.*$"
|
|
||||||
category_tv:
|
|
||||||
selector: .meta a
|
|
||||||
attribute: href
|
|
||||||
filters:
|
|
||||||
- name: regexp
|
|
||||||
args: "^.*/(series)/.*$"
|
|
||||||
category:
|
|
||||||
text: "{{ if or .Result.category_movie .Result.category_tv }}{{ or .Result.category_movie .Result.category_tv }}{{ else }}other{{ end }}"
|
|
||||||
size:
|
|
||||||
text: "512 MB"
|
|
||||||
size:
|
|
||||||
# size can be missing
|
|
||||||
optional: true
|
|
||||||
selector: .voto1
|
selector: .voto1
|
||||||
filters:
|
filters:
|
||||||
|
- name: prepend
|
||||||
|
args: 0
|
||||||
- name: replace
|
- name: replace
|
||||||
args: ["s", ""]
|
args: ["s", ""]
|
||||||
|
size:
|
||||||
|
text: "{{ if eq .Result._size \"0\"}}512MB{{ else }}{{ .Result._size }}{{ end }}"
|
||||||
date:
|
date:
|
||||||
text: now
|
text: now
|
||||||
seeders:
|
seeders:
|
||||||
|
Reference in New Issue
Block a user