mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
moved data from Roaming to ProgramData.
Cleaned up DiskProvider
This commit is contained in:
parent
7ff1335a2e
commit
d60b863e14
33 changed files with 202 additions and 242 deletions
|
@ -14,21 +14,21 @@ namespace NzbDrone.Api.Client
|
|||
{
|
||||
public class ClientSettings : IHandle<ApplicationStartedEvent>
|
||||
{
|
||||
private readonly IAppDirectoryInfo _appDirectoryInfo;
|
||||
private readonly IAppFolderInfo _appFolderInfo;
|
||||
|
||||
private static readonly Regex VersionRegex = new Regex(@"(?<=Version:\s')(.*)(?=')", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
private static readonly Regex BuildDateRegex = new Regex(@"(?<=BuildDate:\s)('.*')", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
|
||||
public ClientSettings(IAppDirectoryInfo appDirectoryInfo)
|
||||
public ClientSettings(IAppFolderInfo appFolderInfo)
|
||||
{
|
||||
_appDirectoryInfo = appDirectoryInfo;
|
||||
_appFolderInfo = appFolderInfo;
|
||||
}
|
||||
|
||||
public void Handle(ApplicationStartedEvent message)
|
||||
{
|
||||
//TODO: Update the APIKey (when we have it)
|
||||
|
||||
var appFile = Path.Combine(_appDirectoryInfo.StartUpPath, "UI", "app.js");
|
||||
var appFile = Path.Combine(_appFolderInfo.StartUpFolder, "UI", "app.js");
|
||||
var contents = File.ReadAllText(appFile);
|
||||
var version = BuildInfo.Version;
|
||||
var date = BuildInfo.BuildDateTime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue