Added RSS support for torrents

This commit is contained in:
Keivan Beigi
2013-09-13 16:17:58 -07:00
parent 89d603d71c
commit 82b06bab7a
59 changed files with 577 additions and 268 deletions
+27
View File
@@ -0,0 +1,27 @@
using System;
namespace NzbDrone.Core.Parser.Model
{
public class ReleaseInfo
{
public string Title { get; set; }
public long Size { get; set; }
public string DownloadUrl { get; set; }
public string InfoUrl { get; set; }
public string CommentUrl { get; set; }
public String Indexer { get; set; }
public DateTime PublishDate { get; set; }
public int Age
{
get
{
return DateTime.UtcNow.Subtract(PublishDate).Days;
}
}
public string ReleaseGroup { get; set; }
public int TvRageId { get; set; }
}
}
+2 -2
View File
@@ -7,7 +7,7 @@ namespace NzbDrone.Core.Parser.Model
{
public class RemoteEpisode
{
public ReportInfo Report { get; set; }
public ReleaseInfo Release { get; set; }
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
@@ -22,7 +22,7 @@ namespace NzbDrone.Core.Parser.Model
public override string ToString()
{
return Report.Title;
return Release.Title;
}
}
}
-16
View File
@@ -1,16 +0,0 @@
using System;
namespace NzbDrone.Core.Parser.Model
{
public class ReportInfo
{
public string Title { get; set; }
public long Size { get; set; }
public string NzbUrl { get; set; }
public string NzbInfoUrl { get; set; }
public String Indexer { get; set; }
public int Age { get; set; }
public string ReleaseGroup { get; set; }
public int TvRageId { get; set; }
}
}
@@ -0,0 +1,8 @@
namespace NzbDrone.Core.Parser.Model
{
public class TorrentInfo : ReleaseInfo
{
public string MagnetUrl { get; set; }
public string InfoHash { get; set; }
}
}