-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: (Cardigann) - Cardigann v4 Support for Genre, Year, and TraktID
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -561,6 +561,13 @@ private string ParseFields(string value, string fieldName, TorrentInfo release, | |
release.TvRageId = (int)ParseUtil.CoerceLong(rageID); | ||
value = release.TvRageId.ToString(); | ||
break; | ||
case "traktid": | ||
var traktIDRegEx = new Regex(@"(\d+)", RegexOptions.Compiled); | ||
var traktIDMatch = traktIDRegEx.Match(value); | ||
var traktID = traktIDMatch.Groups[1].Value; | ||
release.TvRageId = (int)ParseUtil.CoerceLong(traktID); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
value = release.TvRageId.ToString(); | ||
break; | ||
case "tvdbid": | ||
var tvdbIdRegEx = new Regex(@"(\d+)", RegexOptions.Compiled); | ||
var tvdbIdMatch = tvdbIdRegEx.Match(value); | ||
|
@@ -577,6 +584,14 @@ private string ParseFields(string value, string fieldName, TorrentInfo release, | |
|
||
value = release.PosterUrl; | ||
break; | ||
case "genre": | ||
release.Genres = release.Genres.Union(value.Split(',')).ToList(); | ||
value = release.Genres.ToString(); | ||
This comment has been minimized.
Sorry, something went wrong.
garfield69
Contributor
|
||
break; | ||
case "year": | ||
release.Year = ParseUtil.CoerceInt(value); | ||
value = release.Year.ToString(); | ||
break; | ||
case "author": | ||
release.Author = value; | ||
break; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tvrageid is not normally equal to traktid. By design or error?