help you fix your problem I'm working on my PHP to get the list of time. I'm using DomDocument to get the time, I want to find a way to reduce the code as I have got the 69 tags of time in my get-listing.php script. , Update the code to following,
hop of those help? You need to call pygame.init() to initialize everything else. Also, use pygame.mixer.play(-1) to loop the song indefinitely. I don't know Daemonize, but based on the name, it probably spawns a detached thread. You're immediately exiting the main thread, forcing your song to stop. Try adding while 1: pass after daemon.start()
from daemonize import Daemonize
from time import sleep
pid = '/tmp/mpee3.pid'
if __name__ == '__main__':
daemon = Daemonize(app='mpee3', pid=pid, action=main)