|
|
@ -73,7 +73,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
|
|
|
private void UpdateList(List<T> newList)
|
|
|
|
private void UpdateList(List<T> newList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var file = _dataPath + ".json";
|
|
|
|
var file = _dataPath + ".json";
|
|
|
|
_fileSystem.CreateDirectory(Path.GetDirectoryName(file));
|
|
|
|
_fileSystem.CreateDirectory(Path.GetDirectoryName(file));
|
|
|
|
|
|
|
|
|
|
|
|
lock (_fileDataLock)
|
|
|
|
lock (_fileDataLock)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -125,7 +125,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
|
|
|
|
Update(item);
|
|
|
|
Update(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual void Delete(T item)
|
|
|
|
public virtual void Delete(T item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var list = GetAll().Where(i => !EqualityComparer(i, item)).ToList();
|
|
|
|
var list = GetAll().Where(i => !EqualityComparer(i, item)).ToList();
|
|
|
|