Loading player_functions.py +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,10 @@ def playTrack(track_path, port): # Get a random thing from the music folder # from https://codereview.stackexchange.com/questions/202749/pick-a-random-file-from-a-directory-tree def queueRandom(music_path): statusmsg = f"Stopped:\nChoosing a random file" updateDisplay(str.encode(statusmsg)) morbital.setDeviceLED(display, 0, 3) fn_prefix = "player_functions.py/queueRandom" file_list = list(Path(music_path).glob(f"**/*.mid")) if not len(file_list): Loading Loading
player_functions.py +4 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,10 @@ def playTrack(track_path, port): # Get a random thing from the music folder # from https://codereview.stackexchange.com/questions/202749/pick-a-random-file-from-a-directory-tree def queueRandom(music_path): statusmsg = f"Stopped:\nChoosing a random file" updateDisplay(str.encode(statusmsg)) morbital.setDeviceLED(display, 0, 3) fn_prefix = "player_functions.py/queueRandom" file_list = list(Path(music_path).glob(f"**/*.mid")) if not len(file_list): Loading