Fix up station parameters

Correct wording for bandwidth and bookmark.

Also add 'Relia' station reliability parameter.
Use hardcoded mean value of 3 for now (seems to be 1-5).
This commit is contained in:
milaq 2019-08-14 14:50:02 +02:00
parent 63b87dfa95
commit 92756a7144

View file

@ -120,7 +120,8 @@ class Station:
etree.SubElement(item, 'Logo').text = self.logo
etree.SubElement(item, 'StationFormat').text = self.genre
etree.SubElement(item, 'StationLocation').text = self.location
etree.SubElement(item, 'StationBandwidth').text = self.bitrate
etree.SubElement(item, 'StationBandWidth').text = self.bitrate
etree.SubElement(item, 'StationMime').text = self.mime
etree.SubElement(item, 'StationBookmark').text = self.bookmark
etree.SubElement(item, 'Relia').text = '3'
etree.SubElement(item, 'Bookmark').text = self.bookmark
return item