mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 07:10:44 +00:00
digitalcore: Show banners and add Pre (#6326)
This commit is contained in:
parent
dc2b780800
commit
9aed735325
1 changed files with 11 additions and 10 deletions
|
@ -156,10 +156,11 @@ namespace Jackett.Common.Indexers
|
||||||
release.DownloadVolumeFactor = 1;
|
release.DownloadVolumeFactor = 1;
|
||||||
release.UploadVolumeFactor = 1;
|
release.UploadVolumeFactor = 1;
|
||||||
|
|
||||||
// if (!string.IsNullOrWhiteSpace(row.customcover.ToString()))
|
|
||||||
// {
|
if (!string.IsNullOrWhiteSpace(row.firstpic.ToString()))
|
||||||
// release.BannerUrl = new Uri(SiteLink + row.customcover);
|
{
|
||||||
//}
|
release.BannerUrl = (row.firstpic);
|
||||||
|
}
|
||||||
|
|
||||||
if (row.imdbid2 != null && row.imdbid2.ToString().StartsWith("tt"))
|
if (row.imdbid2 != null && row.imdbid2.ToString().StartsWith("tt"))
|
||||||
{
|
{
|
||||||
|
@ -170,8 +171,6 @@ namespace Jackett.Common.Indexers
|
||||||
descriptions.Add("Tagline: " + row.tagline);
|
descriptions.Add("Tagline: " + row.tagline);
|
||||||
descriptions.Add("Cast: " + row.cast);
|
descriptions.Add("Cast: " + row.cast);
|
||||||
descriptions.Add("Rating: " + row.rating);
|
descriptions.Add("Rating: " + row.rating);
|
||||||
//descriptions.Add("Plot: " + row.plot);
|
|
||||||
|
|
||||||
release.BannerUrl = new Uri(SiteLink + "img/imdb/" + row.imdbid2 + ".jpg");
|
release.BannerUrl = new Uri(SiteLink + "img/imdb/" + row.imdbid2 + ".jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,15 +184,17 @@ namespace Jackett.Common.Indexers
|
||||||
if (tags.Count > 0)
|
if (tags.Count > 0)
|
||||||
descriptions.Add("Tags: " + string.Join(", ", tags));
|
descriptions.Add("Tags: " + string.Join(", ", tags));
|
||||||
|
|
||||||
// var preDate = row.preDate.ToString();
|
var preDate = row.preDate.ToString();
|
||||||
// if (!string.IsNullOrWhiteSpace(preDate) && preDate != "1970-01-01 01:00:00")
|
if (!string.IsNullOrWhiteSpace(preDate) && preDate != "1970-01-01 01:00:00")
|
||||||
// descriptions.Add("PRE: " + preDate);
|
{
|
||||||
|
descriptions.Add("Pre: " + preDate);
|
||||||
|
}
|
||||||
descriptions.Add("Section: " + row.section);
|
descriptions.Add("Section: " + row.section);
|
||||||
|
|
||||||
release.Description = string.Join("<br>\n", descriptions);
|
release.Description = string.Join("<br>\n", descriptions);
|
||||||
|
|
||||||
releases.Add(release);
|
releases.Add(release);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Reference in a new issue