mirror of
https://github.com/Radarr/Radarr
synced 2025-02-26 08:02:56 +00:00
Added flags at the end of torrent name for golden / approved
This commit is contained in:
parent
7293a2f4ed
commit
480764e401
1 changed files with 18 additions and 5 deletions
|
@ -46,9 +46,22 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
var id = torrent.Id;
|
||||
var title = torrent.ReleaseName;
|
||||
|
||||
if (torrent.GoldenPopcorn)
|
||||
{
|
||||
title = $"{title} ★";
|
||||
}
|
||||
|
||||
if (torrent.Checked)
|
||||
{
|
||||
title = $"{title} ✔";
|
||||
}
|
||||
|
||||
//if (IsPropertyExist(torrent, "RemasterTitle"))
|
||||
//{
|
||||
// title = string.Format("{0] - {1}", title, torrent.RemasterTitle);
|
||||
// if (torrent.RemasterTitle != null)
|
||||
// {
|
||||
// title = $"{title} - {torrent.RemasterTitle}";
|
||||
// }
|
||||
//}
|
||||
|
||||
// Only add approved torrents
|
||||
|
@ -123,9 +136,9 @@ private string GetInfoUrl(string groupId, int torrentId)
|
|||
return url.FullUri;
|
||||
}
|
||||
|
||||
public static bool IsPropertyExist(dynamic torrents, string name)
|
||||
{
|
||||
return torrents.GetType().GetProperty(name) != null;
|
||||
}
|
||||
//public static bool IsPropertyExist(dynamic torrents, string name)
|
||||
//{
|
||||
// return torrents.GetType().GetProperty(name) != null;
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue