Advertisement
evilbloodydemon

Untitled

Feb 25th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 KB | None | 0 0
  1.                 var orderedByAdded = db.TorrentUser
  2.                     .Where(tu => tu.UserID == user.ID && tu.AddedRss != null && tu.Torrent.Movie.IsCopyrighted == false)
  3.                     .OrderByDescending(x => x.AddedRss)
  4.                     .Select(x => new RssItem
  5.                     {
  6.                         Title = x.Torrent.Movie.Title,
  7.                         Link = string.Format("magnet:?xt=urn:btih:{0}&tr=udp://bt.rutor.org:2710&tr=http://retracker.local/announce", x.Torrent.InfoHash),
  8.                         Description = x.Torrent.Movie.Description,
  9.                         PubDate = x.AddedRss.GetValueOrDefault()
  10.                     })
  11.                     .Take(20)
  12.                     .ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement