Support for http(s) links in _mapping.txt

This commit is contained in:
2022-08-22 08:51:19 +02:00
parent 9a39b00a65
commit cf433a48b2
2 changed files with 11 additions and 2 deletions

View File

@@ -54,6 +54,9 @@ Playlist PlaylistManager::get_playlist(String rfid_id) {
entry.close();
}
dir.close();
} else if (path.startsWith("http")) {
Serial.printf("Adding URL %s to the list of files\n", path.c_str());
current_playlist.add_file(path);
}
current_playlist.sort();
current_rfid_tag_id = rfid_id;