mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-30 23:47:17 +02:00
cardigann: make genre optional (#13443)
This commit is contained in:
@@ -148,7 +148,6 @@ search:
|
||||
attribute: href
|
||||
genre:
|
||||
selector: span.box
|
||||
optional: true
|
||||
description:
|
||||
text: "{{ .Result.genre }}"
|
||||
files:
|
||||
|
@@ -188,7 +188,6 @@ search:
|
||||
optional: true
|
||||
genre:
|
||||
selector: div.list-group-item-content p.m-0 span.badge-primary[style$="#1c38c2;"]
|
||||
optional: true
|
||||
description:
|
||||
text: "{{ .Result.genre }}"
|
||||
title:
|
||||
|
@@ -129,7 +129,6 @@ search:
|
||||
attribute: href
|
||||
genre:
|
||||
selector: i
|
||||
optional: true
|
||||
description:
|
||||
text: "{{ .Result.genre }}"
|
||||
poster:
|
||||
|
@@ -105,7 +105,6 @@ search:
|
||||
attribute: href
|
||||
genre:
|
||||
selector: div.tags
|
||||
optional: true
|
||||
filters:
|
||||
- name: validate
|
||||
args: "Action, Adventure, Animation, Comedy, Crime, Documentary, Drama, Family, Fantasy, History, Horror, Kids, Music, Mystery, News, Reality, Romance, SciFi, Soap, Talk, Thriller, War, Western"
|
||||
|
@@ -89,7 +89,6 @@ search:
|
||||
selector: img
|
||||
attribute: src
|
||||
genre:
|
||||
optional: true
|
||||
selector: div.short_game_genre
|
||||
description:
|
||||
text: "{{ .Result.genre }}"
|
||||
|
@@ -151,7 +151,6 @@ search:
|
||||
attribute: href
|
||||
genre:
|
||||
selector: td[align="right"][width="66%"][valign="bottom"]
|
||||
optional: true
|
||||
filters:
|
||||
- name: replace
|
||||
args: ["\xA0", " "]
|
||||
|
@@ -185,7 +185,6 @@ search:
|
||||
- name: append
|
||||
args: "&f={{ .Result.title }}.torrent"
|
||||
genre:
|
||||
optional: true
|
||||
selector: div.col-md-12
|
||||
filters:
|
||||
- name: validate
|
||||
|
@@ -156,7 +156,6 @@ search:
|
||||
uploadvolumefactor:
|
||||
text: 1
|
||||
genre:
|
||||
optional: true
|
||||
selector: td:nth-child(2)
|
||||
remove: a
|
||||
filters:
|
||||
|
@@ -178,7 +178,6 @@ search:
|
||||
optional: true
|
||||
selector: year
|
||||
genre:
|
||||
optional: true
|
||||
selector: genres
|
||||
_tagline_desc:
|
||||
optional: true
|
||||
|
@@ -154,7 +154,6 @@ search:
|
||||
img[src="pic/dupla_up.png"]: 2
|
||||
"*": 1
|
||||
genre:
|
||||
optional: true
|
||||
selector: div i
|
||||
filters:
|
||||
- name: regexp
|
||||
|
@@ -147,7 +147,6 @@ search:
|
||||
leechers:
|
||||
selector: td:nth-child(9)
|
||||
genre:
|
||||
optional: true
|
||||
selector: a:contains("Genre:")
|
||||
filters:
|
||||
- name: replace
|
||||
|
@@ -156,7 +156,6 @@ search:
|
||||
- name: regexp
|
||||
args: src=([^\s]+)
|
||||
genre:
|
||||
optional: true
|
||||
selector: div.t-tags
|
||||
filters:
|
||||
- name: validate
|
||||
|
@@ -162,7 +162,6 @@ search:
|
||||
args: ["./pic/noposter.png", ""]
|
||||
genre:
|
||||
selector: font[size]
|
||||
optional: true
|
||||
description:
|
||||
text: "{{ .Result.genre }}"
|
||||
download:
|
||||
|
@@ -132,7 +132,6 @@ search:
|
||||
selector: a[href^="downloadssl.php?id="]
|
||||
attribute: href
|
||||
genre:
|
||||
optional: true
|
||||
selector: td:nth-child(2) > small
|
||||
filters:
|
||||
- name: replace
|
||||
|
@@ -156,7 +156,6 @@ search:
|
||||
img[src="images/t_extern.png"]: 0
|
||||
"*": 1
|
||||
genre:
|
||||
optional: true
|
||||
selector: td div
|
||||
filters:
|
||||
- name: regexp
|
||||
|
@@ -179,7 +179,6 @@ search:
|
||||
optional: true
|
||||
selector: year
|
||||
genre:
|
||||
optional: true
|
||||
selector: genres
|
||||
_tagline_desc:
|
||||
optional: true
|
||||
|
@@ -172,7 +172,6 @@ search:
|
||||
"font[color=\"#2A821E\"]:contains(\"x2\")": 2
|
||||
"*": 1
|
||||
genre:
|
||||
optional: true
|
||||
selector: td.torrent:nth-child(2)
|
||||
filters:
|
||||
- name: regexp
|
||||
|
@@ -38,7 +38,7 @@ namespace Jackett.Common.Indexers
|
||||
set => base.configData = value;
|
||||
}
|
||||
|
||||
protected readonly string[] OptionalFields = { "imdb", "imdbid", "tmdbid", "rageid", "tvdbid", "tvmazeid", "traktid", "doubanid", "poster", "description" };
|
||||
protected readonly string[] OptionalFields = { "imdb", "imdbid", "tmdbid", "rageid", "tvdbid", "tvmazeid", "traktid", "doubanid", "poster", "genre", "description" };
|
||||
|
||||
private static readonly string[] _SupportedLogicFunctions =
|
||||
{
|
||||
|
Reference in New Issue
Block a user