mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-04 02:30:53 +02:00
Fixed: (Cardigann) Genre is optional
Fixed: (Cardigann) Expand Genre Validate characters
This commit is contained in:
parent
5c5dfbb66b
commit
f9e2c5b673
2 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ public class CardigannBase
|
|||
protected readonly IndexerCapabilitiesCategories _categories = new IndexerCapabilitiesCategories();
|
||||
protected readonly List<string> _defaultCategories = new List<string>();
|
||||
|
||||
protected readonly string[] OptionalFields = new string[] { "imdb", "imdbid", "tmdbid", "rageid", "tvdbid", "tvmazeid", "traktid", "doubanid", "poster", "banner", "description" };
|
||||
protected readonly string[] OptionalFields = new string[] { "imdb", "imdbid", "tmdbid", "rageid", "tvdbid", "tvmazeid", "traktid", "doubanid", "poster", "banner", "description", "genre" };
|
||||
|
||||
protected static readonly string[] _SupportedLogicFunctions =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -594,7 +594,7 @@ private string ParseFields(string value, string fieldName, TorrentInfo release,
|
|||
value = release.PosterUrl;
|
||||
break;
|
||||
case "genre":
|
||||
char[] delimiters = { ',', ' ', '/', ')', '(', '.', ';', '[', ']' };
|
||||
char[] delimiters = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' };
|
||||
release.Genres = release.Genres.Union(value.Split(delimiters, System.StringSplitOptions.RemoveEmptyEntries)).ToList();
|
||||
value = string.Join(", ", release.Genres);
|
||||
break;
|
||||
|
|
@ -655,7 +655,7 @@ private bool ParseRowFilters(List<FilterBlock> filters, ReleaseInfo release, Dic
|
|||
_logger.Debug(string.Format("CardigannIndexer ({0}): row strdump: {1}", _definition.Id, row.ToString()));
|
||||
break;
|
||||
case "validate":
|
||||
char[] delimiters = { ',', ' ', '/', ')', '(', '.', ';', '[', ']' };
|
||||
char[] delimiters = { ',', ' ', '/', ')', '(', '.', ';', '[', ']', '"', '|', ':' };
|
||||
var args = (string)filter.Args;
|
||||
var argsList = args.ToLower().Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
|
||||
var validList = argsList.ToList();
|
||||
|
|
|
|||
Loading…
Reference in a new issue