|
|
|
@ -56,14 +56,6 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
|
|
|
|
|
title = $"{title} ✔";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//if (IsPropertyExist(torrent, "RemasterTitle"))
|
|
|
|
|
//{
|
|
|
|
|
// if (torrent.RemasterTitle != null)
|
|
|
|
|
// {
|
|
|
|
|
// title = $"{title} - {torrent.RemasterTitle}";
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
// Only add approved torrents
|
|
|
|
|
if (_settings.Approved && torrent.Checked)
|
|
|
|
|
{
|
|
|
|
@ -109,9 +101,37 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// prefer golden
|
|
|
|
|
if (_settings.Golden)
|
|
|
|
|
{
|
|
|
|
|
if (_settings.Scene)
|
|
|
|
|
{
|
|
|
|
|
return
|
|
|
|
|
torrentInfos.OrderByDescending(o => o.PublishDate)
|
|
|
|
|
.ThenBy(o => ((dynamic)o).Golden ? 0 : 1)
|
|
|
|
|
.ThenBy(o => ((dynamic) o).Scene ? 0 : 1)
|
|
|
|
|
.ToArray();
|
|
|
|
|
}
|
|
|
|
|
return
|
|
|
|
|
torrentInfos.OrderByDescending(o => o.PublishDate)
|
|
|
|
|
.ThenBy(o => ((dynamic)o).Golden ? 0 : 1)
|
|
|
|
|
.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// prefer scene
|
|
|
|
|
// require approval
|
|
|
|
|
return torrentInfos.OrderBy(o => ((dynamic)o).Golden ? 0 : 1).ThenBy(o => ((dynamic)o).Scene ? 0 : 1).ThenByDescending(o => ((dynamic)o).PublishDate).ToArray();
|
|
|
|
|
if (_settings.Scene)
|
|
|
|
|
{
|
|
|
|
|
return
|
|
|
|
|
torrentInfos.OrderByDescending(o => o.PublishDate)
|
|
|
|
|
.ThenBy(o => ((dynamic)o).Scene ? 0 : 1)
|
|
|
|
|
.ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// order by date
|
|
|
|
|
return
|
|
|
|
|
torrentInfos
|
|
|
|
|
.OrderByDescending(o => o.PublishDate)
|
|
|
|
|
.ToArray();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string GetDownloadUrl(int torrentId, string authKey, string passKey)
|
|
|
|
|