File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ 2019-11-10
2
+ * Fixing vlc returned volume parsing (due to locales decimal separator)
3
+
1
4
2019-10-29 s-n-g
2
5
* FIX: Playlists flagged as changed when adding a station
3
6
* Handling CJK presentation on station and playlist view
Original file line number Diff line number Diff line change 1
1
.\" Copyright (C) 2011 Ben Dowling <http://www.coderholic.com/pyradio>
2
2
.\" This manual is freely distributable under the terms of the GPL.
3
3
.\"
4
- .TH PYRADIO 1 "October 2019"
4
+ .TH PYRADIO 1 "November 2019"
5
5
6
6
.SH NAME
7
7
.PP
Original file line number Diff line number Diff line change 1
1
" pyradio -- Console radio player. "
2
2
3
- version_info = (0 , 8 , 3 )
3
+ version_info = (0 , 8 , 4 )
4
4
5
5
__version__ = version = '.' .join (map (str , version_info ))
6
6
__project__ = __name__
Original file line number Diff line number Diff line change @@ -762,7 +762,8 @@ def _volume_down(self):
762
762
763
763
def _format_volume_string (self , volume_string ):
764
764
""" format vlc's volume """
765
- self .actual_volume = int (volume_string .split (self .volume_string )[1 ].split (',' )[0 ].split ()[0 ])
765
+ dec_sep = '.' if '.' in volume_string else ','
766
+ self .actual_volume = int (volume_string .split (self .volume_string )[1 ].split (dec_sep )[0 ].split ()[0 ])
766
767
return '[Vol: {}%] ' .format (int (100 * self .actual_volume / self .max_volume ))
767
768
768
769
def _format_title_string (self , title_string ):
You can’t perform that action at this time.
0 commit comments