Fixed: (RED/OPS) Add log score to release titles

This commit is contained in:
Bogdan
2023-11-29 08:18:24 +02:00
parent 9dc117191e
commit e12cd68772
4 changed files with 26 additions and 8 deletions
@@ -374,14 +374,23 @@ namespace NzbDrone.Core.Indexers.Definitions
title += $" [{$"{torrent.RemasterTitle} {torrent.RemasterYear}".Trim()}]";
}
title += $" [{torrent.Format} {torrent.Encoding}] [{torrent.Media}]";
var flags = new List<string>
{
$"{torrent.Format} {torrent.Encoding}",
$"{torrent.Media}"
};
if (torrent.HasLog)
{
flags.Add("Log (" + torrent.LogScore + "%)");
}
if (torrent.HasCue)
{
title += " [Cue]";
flags.Add("Cue");
}
return title;
return $"{title} [{string.Join(" / ", flags)}]";
}
private string GetDownloadUrl(int torrentId, bool canUseToken)