cardigann: make genre optional (#13443)

This commit is contained in:
ilike2burnthing 2022-08-02 11:36:02 +01:00 committed by GitHub
parent c19b6e547e
commit fa5a10f27c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 1 additions and 18 deletions

View File

@ -148,7 +148,6 @@ search:
attribute: href
genre:
selector: span.box
optional: true
description:
text: "{{ .Result.genre }}"
files:

View File

@ -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:

View File

@ -129,7 +129,6 @@ search:
attribute: href
genre:
selector: i
optional: true
description:
text: "{{ .Result.genre }}"
poster:

View File

@ -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"

View File

@ -89,7 +89,6 @@ search:
selector: img
attribute: src
genre:
optional: true
selector: div.short_game_genre
description:
text: "{{ .Result.genre }}"

View File

@ -151,7 +151,6 @@ search:
attribute: href
genre:
selector: td[align="right"][width="66%"][valign="bottom"]
optional: true
filters:
- name: replace
args: ["\xA0", " "]

View File

@ -185,7 +185,6 @@ search:
- name: append
args: "&f={{ .Result.title }}.torrent"
genre:
optional: true
selector: div.col-md-12
filters:
- name: validate

View File

@ -156,7 +156,6 @@ search:
uploadvolumefactor:
text: 1
genre:
optional: true
selector: td:nth-child(2)
remove: a
filters:

View File

@ -178,7 +178,6 @@ search:
optional: true
selector: year
genre:
optional: true
selector: genres
_tagline_desc:
optional: true

View File

@ -154,7 +154,6 @@ search:
img[src="pic/dupla_up.png"]: 2
"*": 1
genre:
optional: true
selector: div i
filters:
- name: regexp

View File

@ -147,7 +147,6 @@ search:
leechers:
selector: td:nth-child(9)
genre:
optional: true
selector: a:contains("Genre:")
filters:
- name: replace

View File

@ -156,7 +156,6 @@ search:
- name: regexp
args: src=([^\s]+)
genre:
optional: true
selector: div.t-tags
filters:
- name: validate

View File

@ -162,7 +162,6 @@ search:
args: ["./pic/noposter.png", ""]
genre:
selector: font[size]
optional: true
description:
text: "{{ .Result.genre }}"
download:

View File

@ -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

View File

@ -156,7 +156,6 @@ search:
img[src="images/t_extern.png"]: 0
"*": 1
genre:
optional: true
selector: td div
filters:
- name: regexp

View File

@ -179,7 +179,6 @@ search:
optional: true
selector: year
genre:
optional: true
selector: genres
_tagline_desc:
optional: true

View File

@ -172,7 +172,6 @@ search:
"font[color=\"#2A821E\"]:contains(\"x2\")": 2
"*": 1
genre:
optional: true
selector: td.torrent:nth-child(2)
filters:
- name: regexp

View File

@ -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 =
{