Skip to content

Commit 565e3c5

Browse files
committed
- version 0.9.3.2 (BUG FIX release)
- restoring paste functionality for stations
1 parent 8df625f commit 565e3c5

File tree

12 files changed

+29
-11
lines changed

12 files changed

+29
-11
lines changed

Changelog

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
2024-04-08 s-n-g
2+
* version 0.9.3.2 (BUG FIX)
3+
* fixing #233 (move .registers to state dir)
4+
* fixing stations.csv (from erroneous PR #227)
5+
* updating headless.md
6+
17
2024-04-06 s-n-g
2-
* version 0.9.3.1
8+
* version 0.9.3.1 (BUG FIX)
39
* fixing #231 - [BUG] pyradio-0.9.3 cannot be executed
410
* closing #232 - [BUG] self.xdg.xdg_compliant = False
511

docs/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,14 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
207207
<h2 id="changelog">Changelog <span style="padding-left: 10px;"><sup style="font-size: 50%"><a href="#" title="Go to top of the page">Top</a></sup></span></h2>
208208
<pre style="height: 200px;">
209209

210+
2024-04-08 s-n-g
211+
* version 0.9.3.2 (BUG FIX)
212+
* fixing #233 (move .registers to state dir)
213+
* fixing stations.csv (from erroneous PR #227)
214+
* updating headless.md
215+
210216
2024-04-06 s-n-g
211-
* version 0.9.3.1
217+
* version 0.9.3.1 (BUG FIX)
212218
* fixing #231 - [BUG] pyradio-0.9.3 cannot be executed
213219
* closing #232 - [BUG] self.xdg.xdg_compliant = False
214220

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.3.1"
3+
version = "0.9.3.2"
44
authors = [
55
{ name="Ben Dowling", email="[email protected]" },
66
{ name="Spiros Georgaras", email="[email protected]" },

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, 3, 1)
4+
version_info = (0, 9, 3, 2)
55

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

pyradio/browser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,11 @@ def get_info_string(self, a_station, max_width, win_width):
575575
info[n[0]] = self._raw_stations[a_station][n[1]].encode('utf-8', 'replace')
576576
if n[1] == 'bitrate':
577577
info[n[0]] += ' kb/s'
578+
# elif n[1] == 'favicon':
579+
# ext = info[n[0]][-3:].lower()
580+
# if ext != 'png' and ext != 'jpg':
581+
# info[n[0]] = ''
582+
578583

579584
a_list = []
580585
fix_highlight = []

pyradio/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ remote_control_server_auto_start = False
174174
# Packagers should set this paramater as resired!
175175
#
176176
# Default value: False
177-
xdg_compliant = True
177+
xdg_compliant = False
178178

179179
# The name of the distribution providing the package. If this parameter is set
180180
# to anything other than "None" PyRadio will not permit updating (-U command

pyradio/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,8 @@ def paste_station_to_named_playlist(self, a_station, a_playlist):
999999
-5: Error writing file
10001000
-6: Error renaming file
10011001
'''
1002+
if logger.isEnabledFor(logging.DEBUG):
1003+
logger.debug(f'pasting to "{a_playlist}"')
10021004
if path.exists(a_playlist):
10031005
m_station = a_station[:]
10041006
ch = (' ', ',')

pyradio/config_window.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,10 +2872,8 @@ def _get_result(self):
28722872
if self._items[self._selected_playlist_id].startswith('Register: '):
28732873
ret = self._items[self._selected_playlist_id].replace('Register: ', 'register_')
28742874
ret = path.join(self._registers_path, ret + '.csv')
2875-
logger.error(f'ret 1: {ret = }')
28762875
else:
2877-
ret = path.join(self._registers_path, self._items[self._selected_playlist_id] + '.csv')
2878-
logger.error(f'ret 2: {ret = }')
2876+
ret = path.join(self._config_path, self._items[self._selected_playlist_id] + '.csv')
28792877
# if platform == 'win32':
28802878
# ret.replace('.registers', '_registers')
28812879
return 0, ret

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.3.1'
18+
PyRadioInstallPyReleaseVersion = '0.9.3.2'
1919

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

pyradio/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def shell():
358358
gr_headless.add_argument('-fd', '--free-dead-headless-server', action='store_true',
359359
help='Use this if your headless server has terminated unexpectedly, and you cannot start a new one (you get a message that it is already running).')
360360
# gr_headless.add_argument('-gss', '--generate-systemd-service-files', action='store_true',
361-
help='Create systemd service files to enable / disable headless operation using tmux or screen.')
361+
# help='Create systemd service files to enable / disable headless operation using tmux or screen.')
362362
args = parser.parse_args()
363363
sys.stdout.flush()
364364

0 commit comments

Comments
 (0)