From 3ad371aa9d3b98899c7da8175bb6daba20d0deaa Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Mon, 2 Nov 2026 14:44:38 +0800 Subject: [PATCH] =?UTF-8?q?style(download):=20=E8=A1=A5=E5=85=A8=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=88=86=E6=94=AF=E8=8A=B1=E6=8B=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/data/services/download_controller.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/core/data/services/download_controller.dart b/lib/core/data/services/download_controller.dart index b8108e7..c175152 100644 --- a/lib/core/data/services/download_controller.dart +++ b/lib/core/data/services/download_controller.dart @@ -120,7 +120,9 @@ class DownloadController extends ChangeNotifier { String episodeId, { DownloadLicense? license, }) async { - if (_downloading.contains(episodeId)) return const DownloadActionResult(ok: true); + if (_downloading.contains(episodeId)) { + return const DownloadActionResult(ok: true); + } final source = license ?? _licenseFor(episodeId); if (source == null) return const DownloadActionResult(ok: false); _beginDownload(episodeId); @@ -129,7 +131,8 @@ class DownloadController extends ChangeNotifier { final media = await _storage.download( episodeId: episodeId, url: resolved, - onProgress: (received, total) => _onProgress(episodeId, received, total), + onProgress: (received, total) => + _onProgress(episodeId, received, total), ); _localPaths[episodeId] = media.filePath; _progress[episodeId] = 1;