forked from rc/aircox
		
	start liquidsoap part; fix some bugs; update Stream model
This commit is contained in:
		
							
								
								
									
										24
									
								
								aircox_liquidsoap/settings.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								aircox_liquidsoap/settings.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,24 @@
 | 
			
		||||
 | 
			
		||||
from django.conf import settings
 | 
			
		||||
 | 
			
		||||
def ensure (key, default):
 | 
			
		||||
    globals()[key] = getattr(settings, key, default)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# dict of values to set (do not forget to escape chars)
 | 
			
		||||
ensure('AIRCOX_LIQUIDSOAP_CONFIG', {
 | 
			
		||||
    'log.file.path': '"/tmp/liquidsoap.log"',
 | 
			
		||||
    'server.socket': 'true',
 | 
			
		||||
    'server.socket.path': '"/tmp/liquidsoap.sock"'
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
# security source: used when no source are available
 | 
			
		||||
ensure('AIRCOX_LIQUIDSOAP_SECURITY_SOURCE', '/media/data/musique/creation/Mega Combi/MegaCombi241-PT134-24062015_Comme_des_lyca_ens.mp3')
 | 
			
		||||
 | 
			
		||||
# start the server on monitor if not present
 | 
			
		||||
ensure('AIRCOX_LIQUIDSOAP_AUTOSTART', True)
 | 
			
		||||
 | 
			
		||||
# output directory for the generated files
 | 
			
		||||
ensure('AIRCOX_LIQUIDSOAP_MEDIA', '/tmp')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user