You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
355 B
Python

# Random mp3 selector
#
# player for Pancake Promises
# TGC#3 Collab
import subprocess
from os import listdir
from os.path import isfile, join
from random import randint
mypath="/media/floppy/tracks"
tracks = [f for f in listdir(mypath) if isfile(join(mypath, f))]
for t in tracks:
subprocess.call(["mpv", mypath+"/"+t, "--volume", "90"])
pass