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,