Skip to content

Commit bf0fd80

Browse files
committed
- version 0.2.9.19
- cover.png updated - make sure cover.png is in the data folder - fix "No chapters found" message when recorded file has less than 3 chapter markers
1 parent 51e9f7e commit bf0fd80

File tree

8 files changed

+32
-10
lines changed

8 files changed

+32
-10
lines changed

Changelog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2023-11-06 s-n-g
2+
* version 0.9.2.19 (BUG FIX release)
3+
* cover.png updated
4+
* make sure cover.png is in the data folder
5+
* fix "No chapters found" message when recorded file has
6+
less than 3 chapter markers
7+
18
2023-11-03 s-n-g
29
* version 0.9.2.18
310
* fixing a crash on mkvtoolnix.py

README.html

+7
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
214214
<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>
215215
<pre style="height: 200px;">
216216

217+
2023-11-06 s-n-g
218+
* version 0.9.2.19 (BUG FIX release)
219+
* cover.png updated
220+
* make sure cover.png is in the data folder
221+
* fix "No chapters found" message when recorded file has
222+
less than 3 chapter markers
223+
217224
2023-11-03 s-n-g
218225
* version 0.9.2.18
219226
* fixing a crash on mkvtoolnix.py

devel/cover.png

-1.7 KB
Loading

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyradio"
3-
version = "0.9.2.18"
3+
version = "0.9.2.19"
44
authors = [
55
{ name="Ben Dowling", email="[email protected]" },
66
{ name="Spiros Georgaras", email="[email protected]" },

pyradio/__init__.py

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

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

pyradio/config.py

+13-4
Original file line numberDiff line numberDiff line change
@@ -212,19 +212,28 @@ def _move_to_data(self):
212212
sys.exit(1)
213213

214214
def _copy_icon(self):
215-
''' if i still do not have the icon in the data dir
215+
''' if i still do not have the icons in the data dir
216216
copy it from the icons dir
217217
'''
218-
if not path.exists(path.join(self.data_dir, 'pyradio.png')):
219-
for an_icon in ('pyradio.png', 'cover.png'):
218+
upd = path.join(self.data_dir, 'UPDATE_ICON')
219+
# # remove the file, I do not need it anymore
220+
# if path.exists(upd):
221+
# os.remove(upd)
222+
223+
for an_icon in ('pyradio.png', 'cover.png'):
224+
if not path.exists(path.join(self.data_dir, an_icon)) or \
225+
not path.exists(upd):
220226
from_file = path.join(path.dirname(__file__), 'icons', an_icon)
221227
to_file = path.join(self.data_dir, an_icon)
222228
try:
223229
copyfile(from_file, to_file)
224230
except:
225231
pass
232+
# create file so that icons will not be forced copied
233+
with open(upd, 'w') as f:
234+
f.write('\n')
226235

227-
''' make sure that the icon is under ~/.config/pyradio/data
236+
''' make sure that the icons are under ~/.config/pyradio/data
228237
(the previous section may install it to a different location,
229238
if --config-dir is used).
230239
'''

pyradio/install.py

+3-2
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.18'
18+
PyRadioInstallPyReleaseVersion = '0.9.2.19'
1919

2020
import locale
2121
locale.setlocale(locale.LC_ALL, "")
@@ -812,7 +812,8 @@ def _get_python(self, version):
812812
self._python[version - 2] = 'python' + str(version)
813813

814814
if self._terminate_if_not_found and \
815-
not self.can_use():
815+
not self.can_use() and \
816+
self.requested_python_version == version:
816817
print('''
817818
818819
Python {} was not found in your system.

pyradio/mkvtoolnix.py

-2
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ def _read_chapters(self, a_file, encoding='utf-8'):
339339
for i, n in enumerate(search_str):
340340
ex = re.compile(n + r'[^\n]*')
341341
out.append(ex.findall(s))
342-
if len(out[0]) < 3:
343-
return None
344342
out[0] = [x[:-6] for x in out[0]]
345343
for n in 0, 1:
346344
out [n] = [ x[len(search_str[n]):] for x in out[n] ]

0 commit comments

Comments
 (0)