mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-24 22:35:39 -04:00
New: Add generic TorrentRssIndexer support.
Add support for generic RSS feeds. Parses the feed and tests if it is EZTV compatible, or if it has all required fields for the generic TorrentRssParser
This commit is contained in:
committed by
Taloth Saldono
parent
bbcabf0632
commit
9d7522cc15
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace NzbDrone.Core.Parser.Model
|
||||
{
|
||||
@@ -19,5 +20,21 @@ namespace NzbDrone.Core.Parser.Model
|
||||
}
|
||||
return torrentInfo.Seeders;
|
||||
}
|
||||
|
||||
public override string ToString(string format)
|
||||
{
|
||||
var stringBuilder = new StringBuilder(base.ToString(format));
|
||||
switch (format.ToUpperInvariant())
|
||||
{
|
||||
case "L": // Long format
|
||||
stringBuilder.AppendLine("MagnetUrl: " + MagnetUrl ?? "Empty");
|
||||
stringBuilder.AppendLine("InfoHash: " + InfoHash ?? "Empty");
|
||||
stringBuilder.AppendLine("Seeders: " + Seeders ?? "Empty");
|
||||
stringBuilder.AppendLine("Peers: " + Peers ?? "Empty");
|
||||
break;
|
||||
}
|
||||
|
||||
return stringBuilder.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user