private DateTime getActualPublishDate(ShizaprojectNode n, ShizaprojectTorrent t) { if (n.PublishedAt == null) { return(t.UpdatedAt); } else { return((t.UpdatedAt > n.PublishedAt) ? t.UpdatedAt : n.PublishedAt.Value); } }
private string composeTitle(ShizaprojectNode n, ShizaprojectTorrent tr) { var title = string.Format("{0} / {1}", n.Name, n.OriginalName); foreach (var tl in n.AlternativeNames) { title += " / " + tl; } title += " ["; foreach (var q in tr.VideoQualities) { title += " " + q; } title += " ]"; return(title); }