mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
First steps for SQLite
This commit is contained in:
parent
29ec800996
commit
ebbf5ea21f
10 changed files with 231 additions and 29 deletions
|
@ -15,6 +15,7 @@ namespace NzbDrone.Common
|
|||
public const string NZBDRONE_EXE = "NzbDrone.exe";
|
||||
|
||||
public const string OBJ_DB_FOLDER = "objDb";
|
||||
public const string NZBDRONE_DB = "nzbdrone.db";
|
||||
|
||||
private const string BACKUP_ZIP_FILE = "NzbDrone_Backup.zip";
|
||||
|
||||
|
@ -40,10 +41,6 @@ namespace NzbDrone.Common
|
|||
return info.FullName.Trim('/', '\\', ' ');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static string GetWebRoot(this EnvironmentProvider environmentProvider)
|
||||
{
|
||||
return Path.Combine(environmentProvider.ApplicationPath, WEB_FOLDER);
|
||||
|
@ -74,7 +71,6 @@ namespace NzbDrone.Common
|
|||
return Path.Combine(environmentProvider.GetAppDataPath(), OBJ_DB_FOLDER);
|
||||
}
|
||||
|
||||
|
||||
public static string GetMediaCoverPath(this EnvironmentProvider environmentProvider)
|
||||
{
|
||||
return Path.Combine(environmentProvider.GetWebRoot(), "MediaCover");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue