mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
update artists
This commit is contained in:
@@ -961,7 +961,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
Name = name
|
||||
|
||||
}).Cast<MusicArtist>()
|
||||
.Where(i => !i.IsAccessedByName)
|
||||
.OrderBy(i => i.IsAccessedByName ? 1 : 0)
|
||||
.Cast<T>()
|
||||
.FirstOrDefault();
|
||||
|
||||
@@ -984,11 +984,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
Path = path
|
||||
};
|
||||
|
||||
if (isArtist)
|
||||
{
|
||||
(item as MusicArtist).IsAccessedByName = true;
|
||||
}
|
||||
|
||||
var task = CreateItem(item, CancellationToken.None);
|
||||
Task.WaitAll(task);
|
||||
}
|
||||
@@ -2574,8 +2569,8 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
throw new ArgumentNullException("name");
|
||||
}
|
||||
|
||||
name = _fileSystem.GetValidFilename(name);
|
||||
|
||||
name = _fileSystem.GetValidFilename(name);
|
||||
|
||||
var rootFolderPath = ConfigurationManager.ApplicationPaths.DefaultUserViewsPath;
|
||||
|
||||
var virtualFolderPath = Path.Combine(rootFolderPath, name);
|
||||
|
||||
Reference in New Issue
Block a user