From 0ac58224f9b2916ce139b89a470fd8c669672c16 Mon Sep 17 00:00:00 2001 From: JigSawFr Date: Mon, 14 Aug 2017 16:23:40 +0200 Subject: [PATCH] style(indexers): cleanup BTN tracker indexer --- src/Jackett/Indexers/BroadcastTheNet.cs | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Jackett/Indexers/BroadcastTheNet.cs b/src/Jackett/Indexers/BroadcastTheNet.cs index f8e358296..682f7790e 100644 --- a/src/Jackett/Indexers/BroadcastTheNet.cs +++ b/src/Jackett/Indexers/BroadcastTheNet.cs @@ -1,27 +1,22 @@ -using CsQuery; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; using Jackett.Models; +using Jackett.Models.IndexerConfig; using Jackett.Services; using Jackett.Utils; using Jackett.Utils.Clients; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Net; -using System.Net.Http; -using System.Text; -using System.Threading.Tasks; -using System.Web; -using Jackett.Models.IndexerConfig; -using System.Dynamic; -using Newtonsoft.Json; namespace Jackett.Indexers { public class BroadcastTheNet : BaseWebIndexer { + // Docs at http://apidocs.broadcasthe.net/docs.php string APIBASE = "https://api.broadcasthe.net"; new ConfigurationDataAPIKey configData @@ -59,7 +54,7 @@ namespace Jackett.Indexers IsConfigured = true; SaveConfig(); } - catch(Exception e) + catch (Exception e) { throw new ExceptionWithConfigData(e.Message, configData); } @@ -92,7 +87,7 @@ namespace Jackett.Indexers { { "Accept", "application/json-rpc, application/json"}, {"Content-Type", "application/json-rpc"} - }, JsonRPCRequest("getTorrents", parameters),false); + }, JsonRPCRequest("getTorrents", parameters), false); try {