mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-27 22:56:45 -04:00
Implement Release Parsing, Decision Engine, and Downloading (#35)
* Implement Parsing, Decision Engine, and Downloading
This commit is contained in:
@@ -56,19 +56,6 @@ namespace NzbDrone.Core.Indexers.Rarbg
|
||||
torrentInfo.Seeders = torrent.seeders;
|
||||
torrentInfo.Peers = torrent.leechers + torrent.seeders;
|
||||
|
||||
if (torrent.episode_info != null)
|
||||
{
|
||||
if (torrent.episode_info.tvdb != null)
|
||||
{
|
||||
torrentInfo.TvdbId = torrent.episode_info.tvdb.Value;
|
||||
}
|
||||
|
||||
if (torrent.episode_info.tvrage != null)
|
||||
{
|
||||
torrentInfo.TvRageId = torrent.episode_info.tvrage.Value;
|
||||
}
|
||||
}
|
||||
|
||||
results.Add(torrentInfo);
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
|
||||
{
|
||||
var pageableRequests = new IndexerPageableRequestChain();
|
||||
|
||||
pageableRequests.Add(GetPagedRequests("search", null, "{0}+{1}", searchCriteria.Artist.Name, searchCriteria.Album.Title));
|
||||
pageableRequests.Add(GetPagedRequests("search", null, "{0}+{1}", searchCriteria.Artist.Name, searchCriteria.AlbumTitle));
|
||||
|
||||
return pageableRequests;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Rarbg
|
||||
@@ -26,8 +26,8 @@ namespace NzbDrone.Core.Indexers.Rarbg
|
||||
|
||||
public class RarbgTorrentInfo
|
||||
{
|
||||
public string imdb { get; set; }
|
||||
public int? tvrage { get; set; }
|
||||
public int? tvdb { get; set; }
|
||||
// For Future if RARBG decides to return metadata
|
||||
public string artist { get; set; }
|
||||
public string album { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user