2 * Copyright (C) 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 "PlayListRAM.h"
12 #include "PlayListFactory.h"
13 #include "filesystem/File.h"
14 #include "utils/log.h"
19 namespace KODI::PLAYLIST
22 bool CPlayListRAM::LoadData(std::istream
& stream
)
24 CLog::Log(LOGINFO
, "Parsing RAM");
27 while (stream
.peek() != '\n' && stream
.peek() != '\r')
28 strMMS
+= stream
.get();
30 CLog::Log(LOGINFO
, "Adding element {}", strMMS
);
31 CFileItemPtr
newItem(new CFileItem(strMMS
));
32 newItem
->SetPath(strMMS
);
36 } // namespace KODI::PLAYLIST