1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-27 18:29:47 +00:00

TorrentBytes: Don't use truncated release names (#3168)

This commit is contained in:
Jonas Stendahl 2018-05-29 12:24:13 +02:00 committed by kaso17
parent 5721948434
commit fb1e24799d

View file

@ -156,7 +156,14 @@ namespace Jackett.Common.Indexers
var link = row.Cq().Find("td:eq(1) a:eq(1)").First();
release.Guid = new Uri(SiteLink + link.Attr("href"));
release.Comments = release.Guid;
release.Title = link.Get(0).FirstChild.ToString();
release.Title = link.Attr("title");
// There isn't a title attribute if the release name isn't truncated.
if (string.IsNullOrWhiteSpace(release.Title))
{
release.Title = link.Get(0).FirstChild.ToString();
}
release.Description = release.Title;
// If we search an get no results, we still get a table just with no info.