|
|
@ -1,4 +1,4 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.IO;
|
|
|
|
using System.IO;
|
|
|
|
using Nancy;
|
|
|
|
using Nancy;
|
|
|
|
using Nancy.Responses;
|
|
|
|
using Nancy.Responses;
|
|
|
@ -21,10 +21,7 @@ namespace Lidarr.Http.Frontend.Mappers
|
|
|
|
_diskProvider = diskProvider;
|
|
|
|
_diskProvider = diskProvider;
|
|
|
|
_logger = logger;
|
|
|
|
_logger = logger;
|
|
|
|
|
|
|
|
|
|
|
|
if (!RuntimeInfo.IsProduction)
|
|
|
|
_caseSensitive = RuntimeInfo.IsProduction ? DiskProviderBase.PathStringComparison : StringComparison.OrdinalIgnoreCase;
|
|
|
|
{
|
|
|
|
|
|
|
|
_caseSensitive = StringComparison.OrdinalIgnoreCase;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public abstract string Map(string resourceUrl);
|
|
|
|
public abstract string Map(string resourceUrl);
|
|
|
|