2 * Copyright (C) 2005-2024 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 "playlists/PlayListFileItemClassify.h"
12 #include "playlists/PlayListFactory.h"
13 #include "utils/URIUtils.h"
14 #include "utils/Variant.h"
16 namespace KODI::PLAYLIST
19 bool IsPlayList(const CFileItem
& item
)
21 return CPlayListFactory::IsPlaylist(item
);
24 bool IsSmartPlayList(const CFileItem
& item
)
26 if (item
.GetProperty("library.smartplaylist").asBoolean(false))
29 return URIUtils::HasExtension(item
.GetPath(), ".xsp");
32 } // namespace KODI::PLAYLIST