Skip to content

Commit

Permalink
- version 0.2.9.19
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
s-n-g committed Nov 5, 2023
1 parent 51e9f7e commit bf0fd80
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 10 deletions.
7 changes: 7 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2023-11-06 s-n-g
* version 0.9.2.19 (BUG FIX release)
* 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

2023-11-03 s-n-g
* version 0.9.2.18
* fixing a crash on mkvtoolnix.py
Expand Down
7 changes: 7 additions & 0 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ <h2 id="requirements">Requirements <span style="padding-left: 10px;"><sup style=
<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>
<pre style="height: 200px;">

2023-11-06 s-n-g
* version 0.9.2.19 (BUG FIX release)
* 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

2023-11-03 s-n-g
* version 0.9.2.18
* fixing a crash on mkvtoolnix.py
Expand Down
Binary file modified devel/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyradio"
version = "0.9.2.18"
version = "0.9.2.19"
authors = [
{ name="Ben Dowling", email="[email protected]" },
{ name="Spiros Georgaras", email="[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion pyradio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
" pyradio -- Console radio player. "

version_info = (0, 9, 2, 18)
version_info = (0, 9, 2, 19)

# Set it to True if new stations have been
# added to the package's stations.csv
Expand Down
17 changes: 13 additions & 4 deletions pyradio/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,19 +212,28 @@ def _move_to_data(self):
sys.exit(1)

def _copy_icon(self):
''' if i still do not have the icon in the data dir
''' if i still do not have the icons in the data dir
copy it from the icons dir
'''
if not path.exists(path.join(self.data_dir, 'pyradio.png')):
for an_icon in ('pyradio.png', 'cover.png'):
upd = path.join(self.data_dir, 'UPDATE_ICON')
# # remove the file, I do not need it anymore
# if path.exists(upd):
# os.remove(upd)

for an_icon in ('pyradio.png', 'cover.png'):
if not path.exists(path.join(self.data_dir, an_icon)) or \
not path.exists(upd):
from_file = path.join(path.dirname(__file__), 'icons', an_icon)
to_file = path.join(self.data_dir, an_icon)
try:
copyfile(from_file, to_file)
except:
pass
# create file so that icons will not be forced copied
with open(upd, 'w') as f:
f.write('\n')

''' make sure that the icon is under ~/.config/pyradio/data
''' make sure that the icons are under ~/.config/pyradio/data
(the previous section may install it to a different location,
if --config-dir is used).
'''
Expand Down
5 changes: 3 additions & 2 deletions pyradio/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
''' This is PyRadio version this
install.py was released for
'''
PyRadioInstallPyReleaseVersion = '0.9.2.18'
PyRadioInstallPyReleaseVersion = '0.9.2.19'

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

if self._terminate_if_not_found and \
not self.can_use():
not self.can_use() and \
self.requested_python_version == version:
print('''
Python {} was not found in your system.
Expand Down
2 changes: 0 additions & 2 deletions pyradio/mkvtoolnix.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,6 @@ def _read_chapters(self, a_file, encoding='utf-8'):
for i, n in enumerate(search_str):
ex = re.compile(n + r'[^\n]*')
out.append(ex.findall(s))
if len(out[0]) < 3:
return None
out[0] = [x[:-6] for x in out[0]]
for n in 0, 1:
out [n] = [ x[len(search_str[n]):] for x in out[n] ]
Expand Down

0 comments on commit bf0fd80

Please sign in to comment.