A Python library and example script that downloads an audio file via youtube-dl and streams it to an IceCast server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
186 B

#!/usr/bin/env python3
import sys
from icedj import IceDJ
dj = IceDJ()
for line in sys.stdin:
print(line)
file = dj.download(line)
if file != None:
dj.stream(file)