|
|
@@ -138,6 +138,7 @@ interface PlaylistEventData {
|
|
|
songCount: number;
|
|
|
startIndex: number;
|
|
|
songFilePaths: string[];
|
|
|
+ isJump: boolean;
|
|
|
webDavAuthInfo?: WebDavAuthItem; // 新增WebDAV认证信息
|
|
|
}
|
|
|
|
|
|
@@ -1126,6 +1127,7 @@ export struct LocalMusic {
|
|
|
playlistName: data.playlistName as string,
|
|
|
songCount: data.songCount as number,
|
|
|
startIndex: data.startIndex as number,
|
|
|
+ isJump: data.isJump as boolean,
|
|
|
songFilePaths: data.songFilePaths as string[]
|
|
|
}
|
|
|
|
|
|
@@ -1133,7 +1135,8 @@ export struct LocalMusic {
|
|
|
playlistData.playlistId,
|
|
|
playlistData.playlistName,
|
|
|
playlistData.songFilePaths,
|
|
|
- playlistData.startIndex
|
|
|
+ playlistData.startIndex,
|
|
|
+ playlistData.isJump,
|
|
|
)
|
|
|
return
|
|
|
}
|
|
|
@@ -15135,7 +15138,7 @@ export struct LocalMusic {
|
|
|
* 处理歌单播放请求
|
|
|
*/
|
|
|
private async handlePlaylistPlayRequest(playlistId: string, playlistName:
|
|
|
- string, songFilePaths: string[], startIndex: number) {
|
|
|
+ string, songFilePaths: string[], startIndex: number,isJump: boolean) {
|
|
|
try {
|
|
|
Logger.info(`heanup 处理歌单播放请求: ${playlistName}, 歌曲数量: ${songFilePaths.length}, 开始索引: ${startIndex}`)
|
|
|
|
|
|
@@ -15153,7 +15156,9 @@ export struct LocalMusic {
|
|
|
// 验证webdav_account_id设置情况
|
|
|
const accountIds = videoItems.map(item => item.webdav_account_id).filter(id => id);
|
|
|
Logger.info(`heanup 有 ${accountIds.length}/${videoItems.length} 首歌曲设置了webdav_account_id`)
|
|
|
- this.setShowPlayTrue()//显示播放页
|
|
|
+ if(isJump){
|
|
|
+ this.setShowPlayTrue()//显示播放页
|
|
|
+ }
|
|
|
this.finishLoadingPlaylist(videoItems, currentPlayIndex, playlistName)
|
|
|
return
|
|
|
} else {
|
|
|
@@ -15167,7 +15172,9 @@ export struct LocalMusic {
|
|
|
const currentPlayIndex = getNavidromeCurrentPlayIndex();
|
|
|
Logger.info(`heanup Navidrome歌曲列表长度: ${videoItems.length}`);
|
|
|
if (videoItems && videoItems.length > 0) {
|
|
|
- this.setShowPlayTrue()//显示播放页
|
|
|
+ if(isJump){
|
|
|
+ this.setShowPlayTrue()//显示播放页
|
|
|
+ }
|
|
|
this.finishLoadingPlaylist(videoItems, currentPlayIndex, playlistName);
|
|
|
return;
|
|
|
} else {
|