mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-02-05 22:42:22 +01:00
Fixed: (RED/OPS) Add log score to release titles
This commit is contained in:
parent
9dc117191e
commit
e12cd68772
4 changed files with 26 additions and 8 deletions
|
|
@ -44,7 +44,7 @@ public async Task should_parse_recent_feed_from_Orpheus()
|
|||
|
||||
var torrentInfo = releases.First() as TorrentInfo;
|
||||
|
||||
torrentInfo.Title.Should().Be("The Beatles - Abbey Road [1969] [Album] [2.0 Mix 2019] [MP3 V2 (VBR)] [BD]");
|
||||
torrentInfo.Title.Should().Be("The Beatles - Abbey Road [1969] [Album] [2.0 Mix 2019] [MP3 V2 (VBR) / BD]");
|
||||
torrentInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
|
||||
torrentInfo.DownloadUrl.Should().Be("https://orpheus.network/ajax.php?action=download&id=1902448");
|
||||
torrentInfo.InfoUrl.Should().Be("https://orpheus.network/torrents.php?id=466&torrentid=1902448");
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public async Task should_parse_recent_feed_from_Redacted()
|
|||
|
||||
var torrentInfo = releases.First() as TorrentInfo;
|
||||
|
||||
torrentInfo.Title.Should().Be("Red Hot Chili Peppers - Californication [1999] [Album] [US / Reissue 2020] [FLAC 24bit Lossless] [Vinyl]");
|
||||
torrentInfo.Title.Should().Be("Red Hot Chili Peppers - Californication [1999] [Album] [US / Reissue 2020] [FLAC 24bit Lossless / Vinyl]");
|
||||
torrentInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
|
||||
torrentInfo.DownloadUrl.Should().Be("https://redacted.ch/ajax.php?action=download&id=3892313");
|
||||
torrentInfo.InfoUrl.Should().Be("https://redacted.ch/torrents.php?id=16720&torrentid=3892313");
|
||||
|
|
|
|||
|
|
@ -374,14 +374,23 @@ private string GetTitle(GazelleRelease result, GazelleTorrent torrent)
|
|||
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)
|
||||
|
|
|
|||
|
|
@ -357,14 +357,23 @@ private string GetTitle(GazelleRelease result, GazelleTorrent torrent)
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue