From 87d91a0f15154c5f33327e242820fe11936cfc57 Mon Sep 17 00:00:00 2001 From: Yukine Date: Sun, 20 Jun 2021 01:47:08 +0200 Subject: [PATCH] Fixed: Support both old and new UNIT3D Id params (#244) --- .../Indexers/Definitions/UNIT3D/Unit3dRequestGenerator.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dRequestGenerator.cs index d49cfc335..070e722c1 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/UNIT3D/Unit3dRequestGenerator.cs @@ -30,11 +30,13 @@ namespace NzbDrone.Core.Indexers.Definitions.UNIT3D if (searchCriteria.ImdbId != null) { parameters.Add("imdb", searchCriteria.ImdbId); + parameters.Add("imdbId", searchCriteria.ImdbId); } if (searchCriteria.TmdbId > 0) { parameters.Add("tmdb", searchCriteria.TmdbId.ToString()); + parameters.Add("tmdbId", searchCriteria.TmdbId.ToString()); } var pageableRequests = new IndexerPageableRequestChain(); @@ -58,11 +60,13 @@ namespace NzbDrone.Core.Indexers.Definitions.UNIT3D if (searchCriteria.ImdbId != null) { parameters.Add("imdb", searchCriteria.ImdbId); + parameters.Add("imdbId", searchCriteria.ImdbId); } if (searchCriteria.TvdbId > 0) { - parameters.Add("tmdb", searchCriteria.TvdbId.ToString()); + parameters.Add("tvdb", searchCriteria.TvdbId.ToString()); + parameters.Add("tvdbId", searchCriteria.TvdbId.ToString()); } var pageableRequests = new IndexerPageableRequestChain();