fixed localization startup issue
This commit is contained in:
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…
Reference in New Issue
Block a user