fixed localization startup issue

pull/702/head
Luke Pulverenti 12 years ago
parent 88033ecc0b
commit b9c1113df9

@ -48,15 +48,15 @@ namespace MediaBrowser.Server.Implementations.Localization
var localizationPath = LocalizationPath;
var existingFiles = Directory.EnumerateFiles(localizationPath, "ratings-*.txt", SearchOption.TopDirectoryOnly)
.Select(Path.GetFileName)
.ToList();
if (!Directory.Exists(localizationPath))
{
Directory.CreateDirectory(localizationPath);
}
var existingFiles = Directory.EnumerateFiles(localizationPath, "ratings-*.txt", SearchOption.TopDirectoryOnly)
.Select(Path.GetFileName)
.ToList();
// Extract from the assembly
foreach (var resource in type.Assembly
.GetManifestResourceNames()

Loading…
Cancel
Save