mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 09:49:00 +00:00
parent
111ed93853
commit
806ba7e59d
1 changed files with 8 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
using System.Linq;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.AwesomeHD
|
||||
{
|
||||
|
@ -98,6 +99,12 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
flags |= IndexerFlags.AHD_Internal;
|
||||
}
|
||||
|
||||
var imdbId = 0;
|
||||
if (torrent.ImdbId.Length > 2)
|
||||
{
|
||||
imdbId = int.Parse(torrent.ImdbId.Substring(2));
|
||||
}
|
||||
|
||||
torrentInfos.Add(new TorrentInfo()
|
||||
{
|
||||
Guid = string.Format("AwesomeHD-{0}", id),
|
||||
|
@ -108,7 +115,7 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
|||
Seeders = int.Parse(torrent.Seeders),
|
||||
Peers = int.Parse(torrent.Leechers) + int.Parse(torrent.Seeders),
|
||||
PublishDate = torrent.Time.ToUniversalTime(),
|
||||
ImdbId = int.Parse(torrent.ImdbId.Substring(2)),
|
||||
ImdbId = imdbId,
|
||||
IndexerFlags = flags,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue