Restyled by isort

This commit is contained in:
Restyled.io
2021-05-22 01:26:35 +00:00
parent 544c57ff1f
commit adb111fa8b
32 changed files with 100 additions and 105 deletions

View File

@@ -1,16 +1,16 @@
from __future__ import annotations
import logging
import queue
import struct
import threading
import typing
from librespot.common import Utils
from librespot.core import Session
from librespot.core.PacketsReceiver import PacketsReceiver
from librespot.crypto import Packet
from librespot.standard import BytesInputStream, ByteArrayOutputStream
import logging
import queue
import threading
import typing
from librespot.standard import ByteArrayOutputStream, BytesInputStream
class AudioKeyManager(PacketsReceiver):

View File

@@ -1,5 +1,8 @@
from __future__ import annotations
import logging
import typing
from librespot.audio import GeneralAudioStream, HaltListener, NormalizationData
from librespot.audio.cdn import CdnFeedHelper
from librespot.audio.format import AudioQualityPicker
@@ -7,8 +10,6 @@ from librespot.common.Utils import Utils
from librespot.core import Session
from librespot.metadata import PlayableId, TrackId
from librespot.proto import Metadata, StorageResolve
import logging
import typing
class PlayableContentFeeder:

View File

@@ -5,13 +5,11 @@ import random
import time
import typing
from librespot.audio import HaltListener
from librespot.audio import NormalizationData
from librespot.audio import PlayableContentFeeder
from librespot.audio import (HaltListener, NormalizationData,
PlayableContentFeeder)
from librespot.common import Utils
from librespot.core import Session
from librespot.proto import Metadata
from librespot.proto import StorageResolve
from librespot.proto import Metadata, StorageResolve
class CdnFeedHelper:

View File

@@ -8,12 +8,9 @@ import time
import typing
import urllib.parse
from librespot.audio import GeneralAudioStream
from librespot.audio import GeneralWritableStream
from librespot.audio import StreamId
from librespot.audio import GeneralAudioStream, GeneralWritableStream, StreamId
from librespot.audio.AbsChunkedInputStream import AbsChunkedInputStream
from librespot.audio.decrypt import AesAudioDecrypt
from librespot.audio.decrypt import NoopAudioDecrypt
from librespot.audio.decrypt import AesAudioDecrypt, NoopAudioDecrypt
from librespot.audio.format import SuperAudioFormat
from librespot.audio.storage import ChannelManager
from librespot.common import Utils

View File

@@ -1,8 +1,10 @@
from __future__ import annotations
from librespot.proto.Metadata import AudioFile
import enum
import typing
from librespot.proto.Metadata import AudioFile
class AudioQuality(enum.Enum):
NORMAL = 0x00

View File

@@ -1,8 +1,10 @@
import time
from Crypto.Cipher import AES
from Crypto.Util import Counter
from librespot.audio.storage import ChannelManager
from librespot.audio.decrypt.AudioDecrypt import AudioDecrypt
import time
from librespot.audio.storage import ChannelManager
class AesAudioDecrypt(AudioDecrypt):

View File

@@ -1,4 +1,5 @@
from __future__ import annotations
import typing
if typing.TYPE_CHECKING:

View File

@@ -1,16 +1,17 @@
from __future__ import annotations
import concurrent.futures
import logging
import queue
import threading
import typing
from librespot.audio.storage import AudioFile
from librespot.common import Utils
from librespot.core import PacketsReceiver, Session
from librespot.crypto import Packet
from librespot.standard import BytesInputStream, BytesOutputStream, Closeable, Runnable
import concurrent.futures
import logging
import threading
import typing
from librespot.standard import (BytesInputStream, BytesOutputStream, Closeable,
Runnable)
class ChannelManager(Closeable, PacketsReceiver.PacketsReceiver):