mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Added RSS support for torrents
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user