mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-08 23:41:05 +02:00
Improve file list commands
This commit is contained in:
@@ -227,7 +227,13 @@ public class ApiManager
|
||||
{
|
||||
SendNotificationMessageNewLine($"{recivedEventArgs.IpAddress} > Requesting file list", NotificationMessageType.Log);
|
||||
|
||||
await recivedEventArgs.SendResponseAsync(FilesManager.ToList().Select(f => new HyperFileDto(f)).ToList());
|
||||
List<HyperFileDto> files = FilesManager
|
||||
.ToList()
|
||||
.Select(f => new HyperFileDto(f))
|
||||
.Where(f => f.Name.Contains(recivedEventArgs.Data))
|
||||
.ToList();
|
||||
|
||||
await recivedEventArgs.SendResponseAsync(files);
|
||||
}
|
||||
|
||||
private void ReciveMessage(object? sender, MessageRecivedEventArgs<string> recivedEventArgs)
|
||||
|
||||
Reference in New Issue
Block a user