mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-21 05:00:39 +02:00
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 localizationPath = LocalizationPath;
|
||||||
|
|
||||||
var existingFiles = Directory.EnumerateFiles(localizationPath, "ratings-*.txt", SearchOption.TopDirectoryOnly)
|
|
||||||
.Select(Path.GetFileName)
|
|
||||||
.ToList();
|
|
||||||
|
|
||||||
if (!Directory.Exists(localizationPath))
|
if (!Directory.Exists(localizationPath))
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(localizationPath);
|
Directory.CreateDirectory(localizationPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var existingFiles = Directory.EnumerateFiles(localizationPath, "ratings-*.txt", SearchOption.TopDirectoryOnly)
|
||||||
|
.Select(Path.GetFileName)
|
||||||
|
.ToList();
|
||||||
|
|
||||||
// Extract from the assembly
|
// Extract from the assembly
|
||||||
foreach (var resource in type.Assembly
|
foreach (var resource in type.Assembly
|
||||||
.GetManifestResourceNames()
|
.GetManifestResourceNames()
|
||||||
|
|
Loading…
Reference in a new issue