Skip to content

Commit e0e1314

Browse files
committed
Fixed typos.
1 parent e2c51d4 commit e0e1314

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

clay/playback/abstract.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ class AbstractPlayer:
144144

145145
def __init__(self):
146146
self._create_station_notification = None
147-
self._loading = False
148-
self._playing = False
149147
self.queue = _Queue()
150148

151149
# Add notification actions that we are going to use.
@@ -170,8 +168,8 @@ def broadcast_state(self):
170168
)
171169
else:
172170
data = dict(
173-
loading=self._loading,
174-
playing=self._playing,
171+
loading=self.loading,
172+
playing=self.playing,
175173
artist=track.artist.name,
176174
title=track.title,
177175
progress=self.play_progress_seconds,

clay/playback/mpv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def play(self):
8383
track = self.queue.get_current_track()
8484
if track is None:
8585
return
86-
self._is_loading = True
86+
self._loading = True
8787
self.broadcast_state()
8888
self.track_changed.fire(track)
8989

@@ -106,7 +106,7 @@ def _play_ready(self, url, error, track):
106106
Called once track's media stream URL request completes.
107107
If *error* is ``None``, tell libVLC to play media by *url*.
108108
"""
109-
self._is_loading = False
109+
self._loading = False
110110
if error:
111111
#notification_area.notify('Failed to request media URL: {}'.format(str(error)))
112112
logger.error(
@@ -128,7 +128,7 @@ def playing(self):
128128
"""
129129
True if a song is being played at the moment.
130130
"""
131-
return not (self.media_player.pause or self.loading)
131+
return not self.media_player.pause
132132

133133
def play_pause(self):
134134
"""

0 commit comments

Comments
 (0)