From 810505ea1d758b4164a182982029b75139691bd2 Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Fri, 8 Aug 2025 19:30:06 +0800 Subject: [PATCH] tweak Signed-off-by: bggRGjQaUbCoE --- lib/plugin/pl_player/controller.dart | 20 +++++++++++--------- lib/utils/request_utils.dart | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index 57f12f5b7..83ad27537 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -814,15 +814,17 @@ class PlPlayerController { SmartDialog.showToast('视频源为空,请重新进入本页面'); return false; } - if (dataSource.audioSource.isNullOrEmpty) { - SmartDialog.showToast('音频源为空'); - } else { - await (_videoPlayerController!.platform as NativePlayer).setProperty( - 'audio-files', - UniversalPlatform.isWindows - ? dataSource.audioSource!.replaceAll(';', '\\;') - : dataSource.audioSource!.replaceAll(':', '\\:'), - ); + if (!isLive) { + if (dataSource.audioSource.isNullOrEmpty) { + SmartDialog.showToast('音频源为空'); + } else { + await (_videoPlayerController!.platform as NativePlayer).setProperty( + 'audio-files', + UniversalPlatform.isWindows + ? dataSource.audioSource!.replaceAll(';', '\\;') + : dataSource.audioSource!.replaceAll(':', '\\:'), + ); + } } await _videoPlayerController!.open( Media( diff --git a/lib/utils/request_utils.dart b/lib/utils/request_utils.dart index e8ac49781..6a833217b 100644 --- a/lib/utils/request_utils.dart +++ b/lib/utils/request_utils.dart @@ -433,7 +433,7 @@ class RequestUtils { TextButton( onPressed: () { if (checkedId != null) { - Iterable removeList = ctr.allChecked; + Set removeList = ctr.allChecked.toSet(); SmartDialog.showLoading(); FavHttp.copyOrMoveFav( isCopy: isCopy,