Skip to content

Commit fcde291

Browse files
committed
version 0.9.2.2
1 parent e380d7b commit fcde291

File tree

6 files changed

+34
-7
lines changed

6 files changed

+34
-7
lines changed

Changelog

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
2023-03-25 s-n-g
2-
* version 0.9.2.2 (not released)
3-
* adding support for section headers in playlists
1+
2023-03-31 s-n-g
2+
* version 0.9.2.2
3+
* adding support for Groups in playlists
44
* making sure that the stations update thread terminates timely
55

66
2023-03-24 s-n-g

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,7 @@ As of **v. 0.9.1**, **PyRadio** includes the icon in its distribution files, so
13981398
## TODO
13991399

14001400
- [ ] Any user request I find interesting :)
1401+
- [ ] Use some kind of a scheduler
14011402
- [x] Use Radio Browser service ([#80](https://github.com/coderholic/pyradio/issues/80) [#93](https://github.com/coderholic/pyradio/issues/93) [#112](https://github.com/coderholic/pyradio/issues/112)) - v 0.9.0
14021403
- [ ] Use some OPML service, [https://opml.radiotime.com](https://opml.radiotime.com) for example
14031404
- [x] Notify the user that the package's stations.csv has changed -v 0.8.9

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.1"
3+
version = "0.9.2.2"
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,6 +1,6 @@
11
" pyradio -- Console radio player. "
22

3-
version_info = (0, 9, 2, 1)
3+
version_info = (0, 9, 2, 2)
44

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

pyradio/radio.py

+24-1
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ def __init__(self, pyradio_config,
551551
self.ws.UPDATE_STATIONS_CSV_RESULT_MODE: self._update_stations_result,
552552
self.ws.ASK_TO_UPDATE_STATIONS_CSV_MODE: self._ask_to_update_stations_csv,
553553
self.ws.GROUP_SELECTION_MODE: self._show_group_selection,
554+
self.ws.GROUP_HELP_MODE: self._show_group_help,
554555
}
555556

556557
''' list of help functions '''
@@ -579,6 +580,7 @@ def __init__(self, pyradio_config,
579580
self.ws.RADIO_BROWSER_SEARCH_HELP_MODE: self._show_radio_browser_search_help,
580581
self.ws.RADIO_BROWSER_CONFIG_HELP_MODE: self._show_radio_browser_config_help,
581582
self.ws.BROWSER_CONFIG_SAVE_ERROR_MODE: self._print_browser_config_save_error,
583+
self.ws.GROUP_HELP_MODE: self._show_group_help,
582584
}
583585

584586
''' search classes
@@ -2722,6 +2724,22 @@ def _show_radio_browser_config_help(self):
27222724
mode_to_set=self.ws.RADIO_BROWSER_CONFIG_HELP_MODE,
27232725
caption=' RadioBrowser Config Help ')
27242726

2727+
def _show_group_help(self):
2728+
txt = '''Up|,|j|,|PgUp|,
2729+
Down|,|k|,|PgDown |Change Group Header selection.
2730+
g G |Go to first / last Group Header.
2731+
H M L |Go to top / middle / bottom of screen.
2732+
Space|, |Left|, |Enter
2733+
_________________|Select a Group Header.
2734+
Esc|,|q |Cancel.
2735+
%_Global functions_
2736+
-|/|+| or |,|/|. |Change volume.
2737+
m| / |v ||M|ute player / Save |v|olume (not in vlc).
2738+
W| / |w |Toggle title log / like a station.'''
2739+
self._show_help(txt,
2740+
mode_to_set=self.ws.GROUP_HELP_MODE,
2741+
caption=' Group Selection Help ')
2742+
27252743
def _show_main_help(self, from_keyboard=False):
27262744
txt = '''Up|,|j|,|PgUp|,
27272745
Down|,|k|,|PgDown |Change station selection.
@@ -2822,12 +2840,16 @@ def _show_main_help_page_4(self, from_keyboard=False):
28222840

28232841
def _show_main_help_page_5(self, from_keyboard=False):
28242842
txt = '''!Change Player
2825-
\m |Open player selection window.
2843+
\m |Open the |Player Selection| window.
28262844
!Remote Control Server
28272845
\s |Start/Stop the |Server|.
28282846
!Title Logger
28292847
W |Toggle Logger on/off
28302848
w |Tag a station as liked
2849+
!Group Management
2850+
a A |Add a |Group| (set |URL| = |-|).
2851+
^E |/ |^Y |Go to next /previous |Group|.
2852+
^G |Open the |Group Selection| window.
28312853
!Windows Only
28322854
F7 |Delete old installation files.
28332855
F8 |Players management.
@@ -7761,6 +7783,7 @@ def keypress(self, char):
77617783
self.refreshBody()
77627784
elif ret == 2:
77637785
''' show help '''
7786+
self._show_group_help()
77647787
pass
77657788
return
77667789

pyradio/window_stack.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Window_Stack_Constants(object):
9797
UPDATE_STATIONS_CSV_RESULT_MODE = 136
9898
GROUP_SELECTION_MODE = 137
9999
GROUP_SEARCH_MODE = 138
100+
GROUP_HELP_MODE = 139
100101
# TODO: return values from opening theme
101102
PLAYLIST_RECOVERY_ERROR_MODE = 200
102103
PLAYLIST_NOT_FOUND_ERROR_MODE = 201
@@ -277,7 +278,8 @@ class Window_Stack_Constants(object):
277278
UPDATE_NOTIFICATION_MODE: 'UPDATE_NOTIFICATION_MODE',
278279
UPDATE_STATIONS_CSV_RESULT_MODE: 'UPDATE_STATIONS_CSV_RESULT_MODE',
279280
GROUP_SELECTION_MODE: 'GROUP_SELECTION_MODE',
280-
GROUP_SEARCH_MODE: 'GROUP_SEARCH_MODE'
281+
GROUP_SEARCH_MODE: 'GROUP_SEARCH_MODE',
282+
GROUP_HELP_MODE: 'GROUP_HELP_MODE',
281283
}
282284

283285
''' When PASSIVE_WINDOWS target is one of them,
@@ -361,6 +363,7 @@ class Window_Stack_Constants(object):
361363
CHANGE_PLAYER_ONE_PLAYER_ERROR_MODE,
362364
CHANGE_PLAYER_SAME_PLAYER_ERROR_MODE,
363365
UPDATE_STATIONS_CSV_RESULT_MODE,
366+
GROUP_HELP_MODE,
364367
)
365368

366369
def __init__(self):

0 commit comments

Comments
 (0)