Skip to content

Commit 205b898

Browse files
committed
fixing scheduler help
1 parent 0fa1144 commit 205b898

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

pyradio/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ def shell():
791791
if args.use_player != '':
792792
requested_player = args.use_player
793793

794-
if args.list is False and args.add is False:
794+
if not args.list:
795795
print('Reading playlist...')
796796
sys.stdout.flush()
797797
is_last_playlist = False

pyradio/messages_system.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,23 +1419,23 @@ def set_text(self, parent, *args):
14191419
),
14201420

14211421
'M_SCHEDULE_EDIT_HELP': ('Schedule Editor Help',
1422-
r'''Tab|, |L| / |Sh-Tab|, |H |*| Go to next / previous field.
1423-
j|, |Up| / |k|, |Down |*| Go to next / previous field vertivally.
1424-
|*| Go to next / previous field (when
1425-
|*| applicable). Also, change counter value.
1426-
Space |*| Toggle check buttons.
1427-
n |*| Set current date and time to section.
1428-
0|-|9 |*| Add hours to |Start| or |Stop| section.
1429-
t| / |f |*| Copy date/time |t|o/|f|rom complementary field.
1430-
i |*| Validate entry and show dates.
1431-
Enter |*| Perform search / cancel (on push buttons).
1432-
s |*| Perform search (not on Line editor).
1433-
Esc |*| Cancel operation.
1422+
r'''Tab|, |L| / |Sh-Tab|, |H |*|Go to next / previous field.
1423+
j|, |Up| / |k|, |Down |*|Go to next / previous field vertivally.
1424+
|*|Go to next / previous field (when
1425+
|*|applicable). Also, change counter value.
1426+
Space |*|Toggle check buttons.
1427+
n |*|Set current date and time to section.
1428+
0|-|9 |*|Add hours to |Start| or |Stop| section.
1429+
t| / |f |*|Copy date/time |t|o/|f|rom complementary field.
1430+
i |*|Validate entry and show dates.
1431+
Enter |*|Perform search / cancel (on push buttons).
1432+
s |*|Perform search (not on Line editor).
1433+
Esc |*|Cancel operation.
14341434
14351435
%Global functions
1436-
-|/|+| or |,|/|. |*| Change volume.
1437-
m| / |v |*| |M|ute player / Save |v|olume (not in vlc).
1438-
W| / |w |*| Toggle title log / like a station'''
1436+
-|/|+| or |,|/|. |*|Change volume.
1437+
m| / |v |*||M|ute player / Save |v|olume (not in vlc).
1438+
W| / |w |*|Toggle title log / like a station'''
14391439
),
14401440

14411441
}
@@ -1819,6 +1819,7 @@ def _echo_line(self, Y, X, formated, reverse=False):
18191819
else:
18201820
if l:
18211821
self._pad.addstr(l.replace('_', ' '), col)
1822+
# logger.error('adding: "{}"'.format(l))
18221823

18231824
def _populate_pad(self, l):
18241825
self._pad.erase()

pyradio/radio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def __init__(self, pyradio_config,
732732
curses.ascii.SO: self._play_next_station,
733733
curses.KEY_NEXT: self._play_next_station,
734734
# ord('d'): self._html_song_title,
735-
# ord('b'): self._show_schedule_editor,
735+
ord('b'): self._show_schedule_editor,
736736
}
737737

738738
self._remote_control_server = self._remote_control_server_thread = None
@@ -6756,7 +6756,7 @@ def keypress(self, char):
67566756
self.refreshBody()
67576757
elif ret == 2:
67586758
''' Show Help '''
6759-
self._open_simple_message_by_key('M_SCHEDULE_EDIT_HELP')
6759+
self._open_message_win_by_key('M_SCHEDULE_EDIT_HELP')
67606760
elif ret == 4:
67616761
''' Schedule > Select Playlist '''
67626762
self.ws.operation_mode = self.ws.SCHEDULE_PLAYLIST_SELECT_MODE

0 commit comments

Comments
 (0)