aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-02-12 17:41:46 +0100
committerGitHub <noreply@github.com>2020-02-12 17:41:46 +0100
commita2490a7ae5c636d97085a0e950fbbe1a027bfdb0 (patch)
tree985eee14b4ed220cc090fb34f17a5129708dbf13 /Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
parentddf9b38799fa4a0e227ae3c2516a72ec48f13854 (diff)
parente241f83ff12aa2231443b78d39d1db2646aebdf9 (diff)
Merge branch 'master' into images
Diffstat (limited to 'Emby.Server.Implementations/Channels/ChannelPostScanTask.cs')
-rw-r--r--Emby.Server.Implementations/Channels/ChannelPostScanTask.cs32
1 files changed, 14 insertions, 18 deletions
diff --git a/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs b/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
index 36e0e5e26..6cbd04fea 100644
--- a/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
+++ b/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
@@ -35,14 +35,6 @@ namespace Emby.Server.Implementations.Channels
return Task.CompletedTask;
}
- public static string GetUserDistinctValue(User user)
- {
- var channels = user.Policy.EnabledChannels
- .OrderBy(i => i);
-
- return string.Join("|", channels);
- }
-
private void CleanDatabase(CancellationToken cancellationToken)
{
var installedChannelIds = ((ChannelManager)_channelManager).GetInstalledChannelIds();
@@ -75,19 +67,23 @@ namespace Emby.Server.Implementations.Channels
{
cancellationToken.ThrowIfCancellationRequested();
- _libraryManager.DeleteItem(item, new DeleteOptions
- {
- DeleteFileLocation = false
-
- }, false);
+ _libraryManager.DeleteItem(
+ item,
+ new DeleteOptions
+ {
+ DeleteFileLocation = false
+ },
+ false);
}
// Finally, delete the channel itself
- _libraryManager.DeleteItem(channel, new DeleteOptions
- {
- DeleteFileLocation = false
-
- }, false);
+ _libraryManager.DeleteItem(
+ channel,
+ new DeleteOptions
+ {
+ DeleteFileLocation = false
+ },
+ false);
}
}
}