Merge pull request #25808 from CastagnaIT/fix_url_parse
[xbmc.git] / xbmc / playlists / PlayListFileItemClassify.cpp
blob32ae1f827be0db3441c93b8be145dc25c28c3bbd
1 /*
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.
7 */
9 #include "playlists/PlayListFileItemClassify.h"
11 #include "FileItem.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))
27 return true;
29 return URIUtils::HasExtension(item.GetPath(), ".xsp");
32 } // namespace KODI::PLAYLIST