1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-02-26 16:13:19 +00:00

Added flags at the end of torrent name for golden / approved

This commit is contained in:
Devin Buhl 2017-01-09 06:34:43 -05:00
parent 7293a2f4ed
commit 480764e401

View file

@ -46,9 +46,22 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
var id = torrent.Id; var id = torrent.Id;
var title = torrent.ReleaseName; var title = torrent.ReleaseName;
if (torrent.GoldenPopcorn)
{
title = $"{title} ★";
}
if (torrent.Checked)
{
title = $"{title} ✔";
}
//if (IsPropertyExist(torrent, "RemasterTitle")) //if (IsPropertyExist(torrent, "RemasterTitle"))
//{ //{
// title = string.Format("{0] - {1}", title, torrent.RemasterTitle); // if (torrent.RemasterTitle != null)
// {
// title = $"{title} - {torrent.RemasterTitle}";
// }
//} //}
// Only add approved torrents // Only add approved torrents
@ -123,9 +136,9 @@ private string GetInfoUrl(string groupId, int torrentId)
return url.FullUri; return url.FullUri;
} }
public static bool IsPropertyExist(dynamic torrents, string name) //public static bool IsPropertyExist(dynamic torrents, string name)
{ //{
return torrents.GetType().GetProperty(name) != null; // return torrents.GetType().GetProperty(name) != null;
} //}
} }
} }