Skip to content

Commit 66c6ba6

Browse files
committed
version 0.9.2.14
1 parent 4369fe3 commit 66c6ba6

File tree

8 files changed

+15
-10
lines changed

8 files changed

+15
-10
lines changed

README.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ <h3 id="parameters-used">Parameters used</h3>
16261626
</tr>
16271627
</tbody>
16281628
</table>
1629-
<p>* disabled if more than 300KB of memory is free</p>
1629+
<p>* disabled if more than 500KB of memory is free</p>
16301630
<h3 id="customizing-the-buffering-behaviour">Customizing the buffering behaviour</h3>
16311631
<p>In case one wants to use a different set of parameters (when using <strong>mpv</strong> or <strong>mplayer</strong>, but not <strong>vlc</strong>), one would just not use the integrated solution; one would just use a <strong>profile</strong>.</p>
16321632
<p>Please refer to the players’ documentation on profiles and the “<a href="#player-default-volume-level">Player default volume level</a>” section in this document.</p>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ The following table shows the command line parameters used by **PyRadio** when t
800800
| --cache-secs=X | | |
801801
| --cache-on-disk=yes/no \* | | |
802802

803-
\* disabled if more than 300KB of memory is free
803+
\* disabled if more than 500KB of memory is free
804804

805805
### Customizing the buffering behaviour
806806

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyradio"
3-
version = "0.9.2.13"
3+
version = "0.9.2.14"
44
authors = [
55
{ name="Ben Dowling", email="[email protected]" },
66
{ name="Spiros Georgaras", email="[email protected]" },

pyradio.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ The following list shows the command line parameters used by \fBpradio\fR when t
907907
.br
908908
--cache-on-disk=yes/no \fB*\fR
909909

910-
\fB*\fR disabled if more than 300KB of memory is free
910+
\fB*\fR disabled if more than 500KB of memory is free
911911
.RE
912912

913913

pyradio/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22
" pyradio -- Console radio player. "
33

4-
version_info = (0, 9, 2, 13)
4+
version_info = (0, 9, 2, 14)
55

66
# Set it to True if new stations have been
77
# added to the package's stations.csv

pyradio/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
''' This is PyRadio version this
1616
install.py was released for
1717
'''
18-
PyRadioInstallPyReleaseVersion = '0.9.2.13'
18+
PyRadioInstallPyReleaseVersion = '0.9.2.14'
1919

2020
import locale
2121
locale.setlocale(locale.LC_ALL, "")

pyradio/player.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,8 @@ def updateStatus(self, *args):
931931
'Stream buffering done' in subsystemOut or \
932932
'Buffering ' in subsystemOut:
933933
self.buffering = False
934+
if self.PLAYER_NAME == 'vlc':
935+
on_connect()
934936
with self.buffering_lock:
935937
self.buffering_change_function()
936938
with self.status_update_lock:
@@ -2982,7 +2984,7 @@ class VlcPlayer(Player):
29822984
' Segment #',
29832985
'using audio decoder module',
29842986
'answer code 200',
2985-
'buffering done',
2987+
' buffering done',
29862988
'Buffering '
29872989
)
29882990
# max_volume = 1000
@@ -2993,7 +2995,7 @@ class VlcPlayer(Player):
29932995
'using audio filter module',
29942996
'using audio decoder module',
29952997
'answer code 200',
2996-
'buffering done'
2998+
' buffering done'
29972999
)
29983000

29993001
''' Windows only variables '''
@@ -3029,6 +3031,8 @@ def __init__(self,
30293031

30303032
def _on_connect(self):
30313033
logger.error('\n\n*********** VLC on connect\n\n')
3034+
if self.buffering:
3035+
logger.error('not setting volume: buffering')
30323036
if self._config_volume > -1:
30333037
self.get_volume()
30343038
#self.actual_volume = int(self.max_volume*self._config_volume/100)
@@ -3063,7 +3067,7 @@ def _write_config(self):
30633067
f.write(str(self.volume))
30643068
except:
30653069
return False
3066-
self._config_volume - self.volume
3070+
self._config_volume = self.volume
30673071
return True
30683072

30693073
def _volume_set(self, vol):

pyradio/radio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,6 +2177,7 @@ def playbackTimeoutCounter(self, *args):
21772177

21782178
def connectionFailed(self):
21792179
# ok
2180+
self.buffering = self.player.playback_is_on = False
21802181
self.detect_if_player_exited = False
21812182
if self.ws.operation_mode in (self.ws.STATION_INFO_MODE,
21822183
self.ws.STATION_DATABASE_INFO_MODE,
@@ -7017,7 +7018,7 @@ def keypress(self, char):
70177018
self._cnf.buffering_data = x.cache[:]
70187019
self._show_notification_with_delay(
70197020
txt='___Buffering set to {0} {1}___'.format(
7020-
x.delay,
7021+
int(x.delay / 1000) if self.player.PLAYER_NAME == 'vlc' else x.delay,
70217022
'KBytes' if self.player.PLAYER_NAME == 'mplayer' else 'seconds',
70227023
),
70237024
mode_to_set=self.ws.NORMAL_MODE,

0 commit comments

Comments
 (0)