mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-26 10:36:57 +01:00
make channel access opt-in rather than opt out
This commit is contained in:
@@ -393,7 +393,7 @@ namespace MediaBrowser.Dlna
|
||||
throw new ArgumentException("System profiles cannot be deleted.");
|
||||
}
|
||||
|
||||
File.Delete(info.Path);
|
||||
_fileSystem.DeleteFile(info.Path);
|
||||
}
|
||||
|
||||
public void CreateProfile(DeviceProfile profile)
|
||||
@@ -432,9 +432,9 @@ namespace MediaBrowser.Dlna
|
||||
if (!string.Equals(path, current.Path, StringComparison.Ordinal) &&
|
||||
current.Info.Type != DeviceProfileType.System)
|
||||
{
|
||||
File.Delete(current.Path);
|
||||
_fileSystem.DeleteFile(current.Path);
|
||||
}
|
||||
|
||||
|
||||
_xmlSerializer.SerializeToFile(profile, path);
|
||||
}
|
||||
|
||||
|
||||
@@ -899,5 +899,11 @@ namespace MediaBrowser.Dlna.PlayTo
|
||||
return request;
|
||||
}
|
||||
}
|
||||
|
||||
public Task SendMessage<T>(string name, T data, CancellationToken cancellationToken)
|
||||
{
|
||||
// Not supported or needed right now
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user