1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-23 14:51:01 +00:00

yts: replace hardcoded BRRip with type on titles. resolves #4577 #3558 #2200

This commit is contained in:
Garfield69 2019-02-16 16:28:57 +13:00
parent f65cc2f273
commit a879c8af10

View file

@ -149,8 +149,18 @@ namespace Jackett.Common.Indexers
var release = new ReleaseInfo();
// Append the quality to the title because thats how radarr seems to be determining the quality?
// All releases are BRRips, see issue #2200
release.Title = "[YTS] " + movie_item.Value<string>("title_long") + " " + torrent_info.Value<string>("quality") + " BRRip";
// append type: BRRip or WEBRip, resolves #3558 via #4577
var type = torrent_info.Value<string>("type");
switch (type)
{
case "web":
type = " WEBRip";
break;
default:
type = " BRRip";
break;
}
release.Title = "[YTS] " + movie_item.Value<string>("title_long") + " " + torrent_info.Value<string>("quality") + type;
var imdb = movie_item.Value<string>("imdb_code");
release.Imdb = ParseUtil.GetImdbID(imdb);