Parcourir la source

implement user ordering of local metadata readers

Luke Pulverenti il y a 11 ans
Parent
commit
2d0ce724ea
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      MediaBrowser.Server.Implementations/Library/LibraryManager.cs

+ 2 - 0
MediaBrowser.Server.Implementations/Library/LibraryManager.cs

@@ -717,6 +717,8 @@ namespace MediaBrowser.Server.Implementations.Library
             {
             {
                 var userRootPath = ConfigurationManager.ApplicationPaths.DefaultUserViewsPath;
                 var userRootPath = ConfigurationManager.ApplicationPaths.DefaultUserViewsPath;
 
 
+                Directory.CreateDirectory(userRootPath);
+
                 _userRootFolder = RetrieveItem(userRootPath.GetMBId(typeof(UserRootFolder))) as UserRootFolder ??
                 _userRootFolder = RetrieveItem(userRootPath.GetMBId(typeof(UserRootFolder))) as UserRootFolder ??
                                   (UserRootFolder)ResolvePath(new DirectoryInfo(userRootPath));
                                   (UserRootFolder)ResolvePath(new DirectoryInfo(userRootPath));
             }
             }