Skip to content

Commit b8f30e7

Browse files
author
Roman Miroshnychenko
committed
Rename method parameter
1 parent 1aac939 commit b8f30e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugin.video.external.library/libs/monitor.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ def onPlayBackStarted(self):
5858
logger.debug('Started monitoring %s', self._playing_file)
5959

6060
def onPlayBackStopped(self):
61-
self._send_played_file_state(should_refresh_list=True)
61+
self._send_played_file_state(refresh_list=True)
6262
logger.debug('Stopped monitoring %s. Playback stopped.', self._playing_file)
6363
self._clear_state()
6464

6565
def onPlayBackEnded(self):
66-
self._send_played_file_state(should_refresh_list=True)
66+
self._send_played_file_state(refresh_list=True)
6767
logger.debug('Stopped monitoring %s. Playback ended.', self._playing_file)
6868
self._clear_state()
6969

@@ -115,10 +115,10 @@ def _send_resume(self):
115115
json_rpc_api.update_resume(item_id_param, self._item_info[item_id_param],
116116
self._current_time, self._total_time)
117117

118-
def _send_played_file_state(self, should_refresh_list=False):
118+
def _send_played_file_state(self, refresh_list=False):
119119
if self._should_send_playcount():
120120
self._send_playcount()
121121
elif self._should_send_resume():
122122
self._send_resume()
123-
if should_refresh_list:
123+
if refresh_list:
124124
xbmc.executebuiltin('Container.Refresh')

0 commit comments

Comments
 (0)