Allow Custom Data Folder (#355)

Allow Custom Data Folder
This commit is contained in:
flightlevel
2016-05-28 19:40:55 +10:00
parent ac07cc34cd
commit 0fc3d224ab
4 changed files with 21 additions and 0 deletions

View File

@@ -213,6 +213,11 @@ namespace Jackett.Services
/// <returns></returns>
public static string GetAppDataFolderStatic()
{
if (!string.IsNullOrWhiteSpace(Startup.CustomDataFolder))
{
return Startup.CustomDataFolder;
}
if (System.Environment.OSVersion.Platform == PlatformID.Unix)
{
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Jackett");