Support for http(s) links in _mapping.txt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user