From 2b5dc59a36306b32e8bf65716a697ca2962f82b8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 6 Jul 2020 00:37:26 -0400 Subject: [PATCH] Fixed: All AHD x265 Encodes should be HDR Fixes: #4386 --- .../Indexers/AwesomeHD/AwesomeHDRssParser.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRssParser.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRssParser.cs index 44384dac5..535a5e6e9 100644 --- a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRssParser.cs +++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRssParser.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Net; @@ -70,7 +70,15 @@ namespace NzbDrone.Core.Indexers.AwesomeHD foreach (var torrent in torrents) { var id = torrent.Id; + var title = $"{torrent.Name}.{torrent.Year}.{torrent.Resolution}.{torrent.Media}.{torrent.Encoding}.{torrent.AudioFormat}-{torrent.ReleaseGroup}"; + + if (torrent.Encoding.ToLower() == "x265") + { + //Per AHD staff they only allow HDR x265 encodes (https://github.com/Radarr/Radarr/issues/4386) + title = $"{torrent.Name}.{torrent.Year}.{torrent.Resolution}.{torrent.Media}.HDR.{torrent.Encoding}.{torrent.AudioFormat}-{torrent.ReleaseGroup}"; + } + IndexerFlags flags = 0; if (torrent.Freeleech == "0.00")