Skip to content

Commit

Permalink
Rename method parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Miroshnychenko committed Dec 25, 2024
1 parent 1aac939 commit b8f30e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugin.video.external.library/libs/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ def onPlayBackStarted(self):
logger.debug('Started monitoring %s', self._playing_file)

def onPlayBackStopped(self):
self._send_played_file_state(should_refresh_list=True)
self._send_played_file_state(refresh_list=True)
logger.debug('Stopped monitoring %s. Playback stopped.', self._playing_file)
self._clear_state()

def onPlayBackEnded(self):
self._send_played_file_state(should_refresh_list=True)
self._send_played_file_state(refresh_list=True)
logger.debug('Stopped monitoring %s. Playback ended.', self._playing_file)
self._clear_state()

Expand Down Expand Up @@ -115,10 +115,10 @@ def _send_resume(self):
json_rpc_api.update_resume(item_id_param, self._item_info[item_id_param],
self._current_time, self._total_time)

def _send_played_file_state(self, should_refresh_list=False):
def _send_played_file_state(self, refresh_list=False):
if self._should_send_playcount():
self._send_playcount()
elif self._should_send_resume():
self._send_resume()
if should_refresh_list:
if refresh_list:
xbmc.executebuiltin('Container.Refresh')

0 comments on commit b8f30e7

Please sign in to comment.