2 * Copyright (C) 2022 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "PlayerUtils.h"
12 #include "music/MusicUtils.h"
13 #include "utils/Variant.h"
14 #include "video/VideoUtils.h"
16 bool CPlayerUtils::IsItemPlayable(const CFileItem
& itemIn
)
18 const CFileItem
item(itemIn
.GetItemToPlay());
21 if (item
.IsParentFolder())
25 if (item
.IsPlugin() && item
.GetProperty("isplayable").asBoolean())
29 if (MUSIC_UTILS::IsItemPlayable(item
))
32 // Movies / TV Shows / Music Videos
33 if (VIDEO_UTILS::IsItemPlayable(item
))
36 //! @todo add more types on demand.