PlaylistManager: Only search for folders, don't try it with webstreams.
This commit is contained in:
parent
519ac0e3bd
commit
8f19b990ff
@ -40,15 +40,17 @@ 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;
|
||||||
|
|
||||||
bool found=false;
|
if (folder.charAt(0)=='/') {
|
||||||
for (String f: folders) {
|
bool found=false;
|
||||||
if (f.equals(folder)) {
|
for (String f: folders) {
|
||||||
found = true;
|
if (f.equals(folder)) {
|
||||||
break;
|
found = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!found) {
|
||||||
|
INFO("WARNING: Found mapping for RFID id %s which maps to non-existing folder %s!\n", rfid_id.c_str(), folder.c_str());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!found) {
|
|
||||||
INFO("WARNING: Found mapping for RFID id %s which maps to non-existing folder %s!\n", rfid_id.c_str(), folder.c_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user