From 87535d3cfb70e334f1e4c80f74182451ef309817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pauli=20J=C3=A4rvinen?= Date: Sun, 7 Jan 2024 19:07:10 +0200 Subject: [PATCH] Enable starting playback from the playlist file details pane also on NC28 --- js/embedded/main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/embedded/main.js b/js/embedded/main.js index 6c4b1f6ab..0739a9cb4 100644 --- a/js/embedded/main.js +++ b/js/embedded/main.js @@ -231,11 +231,12 @@ function initEmbeddedPlayer() { // Before NC28 mFileList = OCA.Files.App.fileList; mCurrentFile = mFileList.findFile(playlistName); - openPlaylistFile(() => jumpToPlaylistFile(mPlaylist.jumpToIndex(itemIdx))); } else { // NC28 or later - // TODO + // We don't know all of the file details but those are not actually needed for a playlist file + mCurrentFile = {id: playlistId, name: playlistName, mimetype: null, path: null} } + openPlaylistFile(() => jumpToPlaylistFile(mPlaylist.jumpToIndex(itemIdx))); } }); OCA.Music.playlistTabView.on('rendered', () => {