From a311509b7ccfbe782bcfea3873ecec1efa97c8e7 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Mon, 28 Aug 2017 12:50:42 +0200 Subject: [PATCH] Norbits: fix temp directory path generation --- src/Jackett/Indexers/Norbits.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Jackett/Indexers/Norbits.cs b/src/Jackett/Indexers/Norbits.cs index 69517bd99..8a0929cc2 100644 --- a/src/Jackett/Indexers/Norbits.cs +++ b/src/Jackett/Indexers/Norbits.cs @@ -16,6 +16,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NLog; using System.Text; +using System.IO; namespace Jackett.Indexers { @@ -33,7 +34,7 @@ namespace Jackett.Indexers private bool Latency => ConfigData.Latency.Value; private bool DevMode => ConfigData.DevMode.Value; private bool CacheMode => ConfigData.HardDriveCache.Value; - private static string Directory => System.IO.Path.GetTempPath() + "Jackett\\" + MethodBase.GetCurrentMethod().DeclaringType?.Name + "\\"; + private static string Directory => Path.Combine(Path.GetTempPath(), "Jackett", MethodBase.GetCurrentMethod().DeclaringType?.Name); private readonly Dictionary _emulatedBrowserHeaders = new Dictionary(); private CQ _fDom;