PlaylistManager: Only search for folders, don't try it with webstreams.

This commit is contained in:
Fabian Schlenz 2019-11-28 06:29:51 +01:00
parent 519ac0e3bd
commit 8f19b990ff

View File

@ -40,6 +40,7 @@ void PlaylistManager::scan_files() {
TRACE(" Adding mapping: %s=>%s\n", rfid_id.c_str(), folder.c_str()); TRACE(" Adding mapping: %s=>%s\n", rfid_id.c_str(), folder.c_str());
_map[rfid_id] = folder; _map[rfid_id] = folder;
if (folder.charAt(0)=='/') {
bool found=false; bool found=false;
for (String f: folders) { for (String f: folders) {
if (f.equals(folder)) { if (f.equals(folder)) {
@ -52,6 +53,7 @@ void PlaylistManager::scan_files() {
} }
} }
} }
}
f.close(); f.close();
} }
root.close(); root.close();