aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Playlists
diff options
context:
space:
mode:
authorShadowghost <Shadowghost@users.noreply.github.com>2023-03-12 19:42:18 +0100
committerShadowghost <Ghost_of_Stone@web.de>2023-03-17 11:43:53 +0100
commit82080bd1ef056153fd54e05fb9decbf5f5830572 (patch)
treeaeaa8ce8d70f1a3acadd7c6ccd709a2e6b71a9b8 /Emby.Server.Implementations/Playlists
parent8d158df67856bbb9de696f5caa0ec475b172ced2 (diff)
Apply review suggestions
Diffstat (limited to 'Emby.Server.Implementations/Playlists')
-rw-r--r--Emby.Server.Implementations/Playlists/PlaylistManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Playlists/PlaylistManager.cs b/Emby.Server.Implementations/Playlists/PlaylistManager.cs
index c15c2c400..853daf724 100644
--- a/Emby.Server.Implementations/Playlists/PlaylistManager.cs
+++ b/Emby.Server.Implementations/Playlists/PlaylistManager.cs
@@ -530,7 +530,7 @@ namespace Emby.Server.Implementations.Playlists
_libraryManager.GetUserRootFolder().Children.OfType<Folder>().FirstOrDefault(i => string.Equals(i.GetType().Name, TypeName, StringComparison.Ordinal));
}
- public async Task RemovePlaylists(Guid userId)
+ public async Task RemovePlaylistsAsync(Guid userId)
{
var playlists = GetPlaylists(userId);
foreach (var playlist in playlists)
@@ -564,7 +564,7 @@ namespace Emby.Server.Implementations.Playlists
}
}
- public async Task UpdatePlaylist(Playlist playlist)
+ public async Task UpdatePlaylistAsync(Playlist playlist)
{
var currentPlaylist = (Playlist)_libraryManager.GetItemById(playlist.Id);
currentPlaylist.OwnerUserId = playlist.OwnerUserId;
@@ -572,7 +572,7 @@ namespace Emby.Server.Implementations.Playlists
await playlist.UpdateToRepositoryAsync(ItemUpdateType.MetadataEdit, CancellationToken.None).ConfigureAwait(false);
- if (playlist.IsFile)
+ if (currentPlaylist.IsFile)
{
SavePlaylistFile(currentPlaylist);
}