Skip to content

Commit 246be47

Browse files
Format code with yapf
1 parent 129fb92 commit 246be47

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

librespot/audio/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,7 @@ def read(self, __size: int = 0) -> bytes:
190190
chunk += 1
191191
else:
192192
self.check_availability(chunk, True, False)
193-
buffer.write(self.buffer()[chunk][chunk_off:chunk_off +
194-
__size])
193+
buffer.write(self.buffer()[chunk][chunk_off:chunk_off + __size])
195194
buffer.seek(0)
196195
self.__pos += buffer.getbuffer().nbytes
197196
return buffer.read()
@@ -754,10 +753,9 @@ def load_episode(self, episode_id: EpisodeId,
754753
file = audio_quality_picker.get_file(episode.audio)
755754
if file is None:
756755
self.logger.fatal(
757-
"Couldn't find any suitable audio file, available: {}".
758-
format(episode.audio))
759-
return self.load_stream(file, None, episode, preload,
760-
halt_listener)
756+
"Couldn't find any suitable audio file, available: {}".format(
757+
episode.audio))
758+
return self.load_stream(file, None, episode, preload, halt_listener)
761759

762760
def load_track(self, track_id_or_track: typing.Union[TrackId,
763761
Metadata.Track],

0 commit comments

Comments
 (0)