record_mode = 0
run_mode = 1
station_dir = None
- appendtype = 1
+ appendtype = 1
def __init__(self, station, q, logger, m3u):
Thread.__init__(self)
elif 'icecast' in self.type:
self.channel = shout.Shout()
self.channel.mount = '/' + self.mountpoint
- if self.appendtype:
- self.channel.mount = self.channel.mount + '.' + self.media_format
+ if self.appendtype:
+ self.channel.mount = self.channel.mount + '.' + self.media_format
else:
sys.exit('Not a compatible server type. Choose "stream-m" or "icecast".')
"public": 0,
"sourcepassword": "icecast_source_password",
"type": "icecast",
- "appendtype": 1
+ "appendtype": 1
},
"twitter": {
"key": "you access token key",
<public>0</public>
<sourcepassword>icecast_source_password</sourcepassword>
<type>icecast</type>
- <appendtype>1</appendtype>
+ <appendtype>1</appendtype>
</server>
<twitter>
<key>your access token key</key>
<sourcepassword>icecast_source_password</sourcepassword>
<!-- The type of the server (icecast or stream-m) -->
<type>icecast</type>
- <!-- If '1', the media format will be appended to the mount name (ie, /mount.mp3 instead of /mount).
- '0' will leave the mount name alone. Used only for icecast streams -->
- <appendtype>1</appendtype>
+ <!-- If '1', the media format will be appended to the mount name (ie, /mount.mp3 instead of /mount).
+ '0' will leave the mount name alone. Used only for icecast streams -->
+ <appendtype>1</appendtype>
</server>
<twitter>
<!-- Your twitter username -->