mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-22 08:37:23 +01:00
make channel access opt-in rather than opt out
This commit is contained in:
@@ -183,7 +183,7 @@ namespace MediaBrowser.Providers.Manager
|
||||
currentFile.Attributes &= ~FileAttributes.Hidden;
|
||||
}
|
||||
|
||||
currentFile.Delete();
|
||||
_fileSystem.DeleteFile(currentFile.FullName);
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -349,7 +349,7 @@ namespace MediaBrowser.Providers.Manager
|
||||
currentFile.Attributes &= ~FileAttributes.Hidden;
|
||||
}
|
||||
|
||||
currentFile.Delete();
|
||||
_fileSystem.DeleteFile(currentFile.FullName);
|
||||
deleted = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ namespace MediaBrowser.Providers.Subtitles
|
||||
|
||||
try
|
||||
{
|
||||
File.Delete(path);
|
||||
_fileSystem.DeleteFile(path);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
@@ -1108,7 +1108,7 @@ namespace MediaBrowser.Providers.TV
|
||||
.EnumerateFiles("*.xml", SearchOption.AllDirectories)
|
||||
.ToList())
|
||||
{
|
||||
file.Delete();
|
||||
_fileSystem.DeleteFile(file.FullName);
|
||||
}
|
||||
}
|
||||
catch (DirectoryNotFoundException)
|
||||
|
||||
Reference in New Issue
Block a user