Norbits: fix temp directory path generation

This commit is contained in:
kaso17 2017-08-28 12:50:42 +02:00
parent 0db4229bd4
commit a311509b7c
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using NLog; using NLog;
using System.Text; using System.Text;
using System.IO;
namespace Jackett.Indexers namespace Jackett.Indexers
{ {
@ -33,7 +34,7 @@ namespace Jackett.Indexers
private bool Latency => ConfigData.Latency.Value; private bool Latency => ConfigData.Latency.Value;
private bool DevMode => ConfigData.DevMode.Value; private bool DevMode => ConfigData.DevMode.Value;
private bool CacheMode => ConfigData.HardDriveCache.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<string, string> _emulatedBrowserHeaders = new Dictionary<string, string>(); private readonly Dictionary<string, string> _emulatedBrowserHeaders = new Dictionary<string, string>();
private CQ _fDom; private CQ _fDom;