File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ def __init__(self,
303
303
self .monitor = self .monitor_process = None
304
304
self .monitor_opts = self .monitor_update_thread = None
305
305
self ._recording_lock = recording_lock
306
+ self .already_playing = False
306
307
307
308
@property
308
309
def recording (self ):
Original file line number Diff line number Diff line change @@ -231,10 +231,11 @@ def keypress(self, char):
231
231
elif char in (
232
232
curses .KEY_ENTER ,
233
233
ord ('\n ' ), ord ('\r ' ),
234
- ord ('s' ), ord (' ' )
234
+ ord ('s' ), ord (' ' ),
235
+ ord ('l' ), curses .KEY_RIGHT
235
236
):
236
237
return self ._available_players [self ._selected ]
237
- elif char in (ord ('q' ), curses .KEY_EXIT , 27 ):
238
+ elif char in (ord ('h' ), ord ( ' q' ), curses .KEY_EXIT , 27 ):
238
239
return None
239
240
return ''
240
241
@@ -7006,6 +7007,7 @@ def keypress(self, char):
7006
7007
logger .debug ('selected player = {}' .format (ret ))
7007
7008
self ._change_player = None
7008
7009
to_play = self .playing
7010
+ to_record = self .player .recording
7009
7011
if self .player .isPlaying ():
7010
7012
self .stopPlayer ()
7011
7013
self .player = None
@@ -7022,6 +7024,7 @@ def keypress(self, char):
7022
7024
self ._add_station_to_stations_history ,
7023
7025
self ._recording_lock
7024
7026
)
7027
+ self .player .recording = to_record
7025
7028
self .log .display_help_message = False
7026
7029
self .log .write (ret + ': Player activated!!!' , help_msg = False , suffix = '' )
7027
7030
self .player .volume = - 1
You can’t perform that action at this time.
0 commit comments