mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-05-07 21:46:06 +02:00
- removed superfluous parameter from SerializerBase.Save()
- added "Pooling=False" parameter to all Sqlite connection strings to prevent open file locks after closing the connection and to avoid extreme delays when using CloseAllPools()
- C# code refactoring "using var" instead of "using ( ) { }" where possible
This commit is contained in:
@@ -42,15 +42,9 @@ namespace ChanSort.Loader.VDR
|
||||
#endregion
|
||||
|
||||
#region Save()
|
||||
public override void Save(string tvOutputFile)
|
||||
public override void Save()
|
||||
{
|
||||
if (tvOutputFile != FileName)
|
||||
{
|
||||
File.Copy(FileName, tvOutputFile);
|
||||
FileName = tvOutputFile;
|
||||
}
|
||||
|
||||
using var file = new StreamWriter(tvOutputFile);
|
||||
using var file = new StreamWriter(this.FileName);
|
||||
foreach (var channel in allChannels.GetChannelsByNewOrder())
|
||||
{
|
||||
// when a reference list was applied, the list may contain proxy entries for deleted channels, which must be ignored
|
||||
|
||||
Reference in New Issue
Block a user