|
|
@ -66,6 +66,16 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
|
|
|
|
title = $"{title} ✔";
|
|
|
|
title = $"{title} ✔";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var imdbId = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int.TryParse(result.ImdbId, out imdbId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (imdbId == 0 && result.ImdbId.Substring(0, 2) == "tt")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int.TryParse(result.ImdbId.Substring(2), out imdbId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Only add approved torrents
|
|
|
|
// Only add approved torrents
|
|
|
|
if (_settings.RequireApproved && torrent.Checked)
|
|
|
|
if (_settings.RequireApproved && torrent.Checked)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -82,7 +92,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
|
|
|
|
Golden = torrent.GoldenPopcorn,
|
|
|
|
Golden = torrent.GoldenPopcorn,
|
|
|
|
Scene = torrent.Scene,
|
|
|
|
Scene = torrent.Scene,
|
|
|
|
Approved = torrent.Checked,
|
|
|
|
Approved = torrent.Checked,
|
|
|
|
ImdbId = int.Parse(result.ImdbId)
|
|
|
|
ImdbId = imdbId
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Add all torrents
|
|
|
|
// Add all torrents
|
|
|
@ -101,7 +111,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
|
|
|
|
Golden = torrent.GoldenPopcorn,
|
|
|
|
Golden = torrent.GoldenPopcorn,
|
|
|
|
Scene = torrent.Scene,
|
|
|
|
Scene = torrent.Scene,
|
|
|
|
Approved = torrent.Checked,
|
|
|
|
Approved = torrent.Checked,
|
|
|
|
ImdbId = int.Parse(result.ImdbId)
|
|
|
|
ImdbId = imdbId
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Don't add any torrents
|
|
|
|
// Don't add any torrents
|
|
|
|