bitpiracy: fixes

This commit is contained in:
kaso17 2019-01-16 11:12:32 +01:00 committed by GitHub
parent 42b4fae278
commit b6cf6c4e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
@ -15,7 +15,7 @@ using NLog;
namespace Jackett.Common.Indexers
{
public class Digitalcore : BaseWebIndexer
public class BitsPiracy : BaseWebIndexer
{
private string SearchUrl { get { return SiteLink + "api/v1/torrents"; } }
private string LoginUrl { get { return SiteLink + "api/v1/auth"; } }
@ -26,7 +26,7 @@ namespace Jackett.Common.Indexers
set { base.configData = value; }
}
public Digitalcore(IIndexerConfigurationService configService, WebClient w, Logger l, IProtectionService ps)
public BitsPiracy(IIndexerConfigurationService configService, WebClient w, Logger l, IProtectionService ps)
: base(name: "BitsPiracy",
description: "BitsPiracy is a Private Torrent Tracker for MOVIES / TV / GENERAL",
link: "https://bitspiracy.org/",
@ -137,8 +137,8 @@ namespace Jackett.Common.Indexers
release.DownloadVolumeFactor = 1;
release.UploadVolumeFactor = 1;
// if (!string.IsNullOrWhiteSpace(row.customcover.ToString()))
// {
// if (!string.IsNullOrWhiteSpace(row.customcover.ToString()))
// {
// release.BannerUrl = new Uri(SiteLink + row.customcover);
//}
@ -166,9 +166,9 @@ namespace Jackett.Common.Indexers
if (tags.Count > 0)
descriptions.Add("Tags: " + string.Join(", ", tags));
// var preDate = row.preDate.ToString();
// if (!string.IsNullOrWhiteSpace(preDate) && preDate != "1970-01-01 01:00:00")
// descriptions.Add("PRE: " + preDate);
// var preDate = row.preDate.ToString();
// if (!string.IsNullOrWhiteSpace(preDate) && preDate != "1970-01-01 01:00:00")
// descriptions.Add("PRE: " + preDate);
descriptions.Add("Section: " + row.section);
@ -185,4 +185,4 @@ namespace Jackett.Common.Indexers
return releases;
}
}
}
}