|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
#!/usr/bin/env python3 |
|
|
|
|
# a daemon for IceDJ that accepts urls in a fifo |
|
|
|
|
# a daemon for IceDJ that accepts urls and filenames in a fifo |
|
|
|
|
import os, signal, sys, queue, threading |
|
|
|
|
from icedj import IceDJ |
|
|
|
|
|
|
|
|
@ -7,6 +7,7 @@ def stop_program(_signo, _stack_frame):
|
|
|
|
|
os.remove(fifo_path) |
|
|
|
|
sys.exit(0) |
|
|
|
|
|
|
|
|
|
# FIXME: I think this is the thread that has 100% cpu usage for one core? |
|
|
|
|
def add_song(): |
|
|
|
|
while True: |
|
|
|
|
song = songq.get() |
|
|
|
|