From 431eddab375152fc8052a9ad0f4b86c4d7644158 Mon Sep 17 00:00:00 2001 From: DaveTBlake Date: Sun, 15 Sep 2019 10:05:59 +0100 Subject: [PATCH] Fix check of "isplayable" property for plugins --- xbmc/music/windows/GUIWindowMusicBase.cpp | 2 +- xbmc/video/windows/GUIWindowVideoBase.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/music/windows/GUIWindowMusicBase.cpp b/xbmc/music/windows/GUIWindowMusicBase.cpp index ca8931e4a7c48..d29fcc6883bc0 100644 --- a/xbmc/music/windows/GUIWindowMusicBase.cpp +++ b/xbmc/music/windows/GUIWindowMusicBase.cpp @@ -480,7 +480,7 @@ void CGUIWindowMusicBase::AddItemToPlayList(const CFileItemPtr &pItem, CFileItem { // just queue the internet stream, it will be expanded on play queuedItems.Add(pItem); } - else if (pItem->IsPlugin() && pItem->GetProperty("isplayable") == "true") + else if (pItem->IsPlugin() && pItem->GetProperty("isplayable").asBoolean()) { // python files can be played queuedItems.Add(pItem); diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp index fadf6fd1cf677..302c2d9b04aa8 100644 --- a/xbmc/video/windows/GUIWindowVideoBase.cpp +++ b/xbmc/video/windows/GUIWindowVideoBase.cpp @@ -553,7 +553,7 @@ void CGUIWindowVideoBase::AddItemToPlayList(const CFileItemPtr &pItem, CFileItem { // just queue the internet stream, it will be expanded on play queuedItems.Add(pItem); } - else if (pItem->IsPlugin() && pItem->GetProperty("isplayable") == "true") + else if (pItem->IsPlugin() && pItem->GetProperty("isplayable").asBoolean()) { // a playable python files queuedItems.Add(pItem); }