Sailfish: do not crash when opening an audio folders

The QML side attempted to simply pass all items of type 'Audio' to the
PlaybackManager.playItem(). This does not work for folders and it will
crash. This does not fix the presentation of audio folders/playlists,
but it does fix the crash.
This commit is contained in:
Chris Josten 2022-04-27 11:03:18 +02:00
parent cab5f20469
commit 748e5bdf13
No known key found for this signature in database
GPG Key ID: A69C050E9FD9FF6A
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ ApplicationWindow {
}
function navigateToItem(jellyfinId, mediaType, type, isFolder) {
if (mediaType === "Audio") {
if (mediaType === "Audio" && !isFolder) {
playbackManager.playItemId(jellyfinId)
} else {
pageStack.push(Utils.getPageUrl(mediaType, type, isFolder), {"itemId": jellyfinId});