push method
Pushes the task to the download manager for processing.
If the task is already in the download manager or cache, does nothing.
Implementation
@override
Future<void> push(DownloadTask task) async {
Uint8List? dataMemory = await LruCacheSingleton().memoryGet(task.matchUrl);
if (dataMemory != null) return;
task.cacheDir = await FileExt.createCachePath(task.hlsKey);
File file = File(task.savePath);
if (await file.exists()) return;
await VideoProxy.downloadManager.addTask(task);
}