Merge pull request #45 from kokarare1212/deepsource-transform-6bc173ce
Format code with yapf
This commit is contained in:
commit
3a8cd7ee10
|
@ -52,8 +52,7 @@ class AudioKeyManager(PacketsReceiver):
|
|||
return self.get_audio_key(gid, file_id, False)
|
||||
raise RuntimeError(
|
||||
"Failed fetching audio key! gid: {}, fileId: {}".format(
|
||||
Utils.bytes_to_hex(gid),
|
||||
Utils.bytes_to_hex(file_id)))
|
||||
Utils.bytes_to_hex(gid), Utils.bytes_to_hex(file_id)))
|
||||
|
||||
return key
|
||||
|
||||
|
|
|
@ -94,7 +94,8 @@ class CdnFeedHelper:
|
|||
|
||||
streamer = session.cdn().stream_file(file, key, url, halt_listener)
|
||||
input_stream = streamer.stream()
|
||||
normalization_data = NormalizationData.NormalizationData.read(input_stream)
|
||||
normalization_data = NormalizationData.NormalizationData.read(
|
||||
input_stream)
|
||||
if input_stream.skip(0xA7) != 0xA7:
|
||||
raise IOError("Couldn't skip 0xa7 bytes!")
|
||||
return PlayableContentFeeder.PlayableContentFeeder.LoadedStream(
|
||||
|
|
|
@ -166,8 +166,7 @@ class EpisodeId(SpotifyId, PlayableId):
|
|||
if matcher is not None:
|
||||
episode_id = matcher.group(1)
|
||||
return EpisodeId(
|
||||
Utils.bytes_to_hex(
|
||||
PlayableId.BASE62.decode(episode_id, 16)))
|
||||
Utils.bytes_to_hex(PlayableId.BASE62.decode(episode_id, 16)))
|
||||
TypeError("Not a Spotify episode ID: {}".format(uri))
|
||||
|
||||
@staticmethod
|
||||
|
|
Loading…
Reference in New Issue