Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var orderedByAdded = db.TorrentUser
- .Where(tu => tu.UserID == user.ID && tu.AddedRss != null && tu.Torrent.Movie.IsCopyrighted == false)
- .OrderByDescending(x => x.AddedRss)
- .Select(x => new RssItem
- {
- Title = x.Torrent.Movie.Title,
- Link = string.Format("magnet:?xt=urn:btih:{0}&tr=udp://bt.rutor.org:2710&tr=http://retracker.local/announce", x.Torrent.InfoHash),
- Description = x.Torrent.Movie.Description,
- PubDate = x.AddedRss.GetValueOrDefault()
- })
- .Take(20)
- .ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement