Restyled by isort
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
|
||||
from librespot.common import Base62, Utils
|
||||
from librespot.metadata import SpotifyId
|
||||
import re
|
||||
|
||||
|
||||
class AlbumId(SpotifyId.SpotifyId):
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
|
||||
from librespot.common import Base62, Utils
|
||||
from librespot.metadata import SpotifyId
|
||||
import re
|
||||
|
||||
|
||||
class ArtistId(SpotifyId.SpotifyId):
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
|
||||
from librespot.common import Base62, Utils
|
||||
from librespot.metadata import SpotifyId
|
||||
import re
|
||||
|
||||
|
||||
class ShowId(SpotifyId.SpotifyId):
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
|
||||
from librespot.common import Utils
|
||||
from librespot.metadata import SpotifyId
|
||||
from librespot.metadata.PlayableId import PlayableId
|
||||
import re
|
||||
|
||||
|
||||
class TrackId(PlayableId, SpotifyId):
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
import sched
|
||||
import time
|
||||
|
||||
from librespot.core.Session import Session
|
||||
from librespot.player import PlayerConfiguration, StateWrapper
|
||||
from librespot.player.metrics import PlaybackMetrics
|
||||
@@ -6,9 +11,6 @@ from librespot.player.mixing import AudioSink
|
||||
from librespot.player.playback.PlayerSession import PlayerSession
|
||||
from librespot.player.state.DeviceStateHandler import DeviceStateHandler
|
||||
from librespot.standard.Closeable import Closeable
|
||||
import logging
|
||||
import sched
|
||||
import time
|
||||
|
||||
|
||||
class Player(Closeable, PlayerSession.Listener, AudioSink.Listener):
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from librespot.core import Session
|
||||
from librespot.dealer import DealerClient
|
||||
from librespot.player import Player, PlayerConfiguration
|
||||
from librespot.player.state import DeviceStateHandler
|
||||
from librespot.proto import Connect
|
||||
from librespot.proto.Player import (
|
||||
ContextPlayerOptions,
|
||||
PlayerState,
|
||||
Restrictions,
|
||||
Suppressions,
|
||||
)
|
||||
from librespot.proto.Player import (ContextPlayerOptions, PlayerState,
|
||||
Restrictions, Suppressions)
|
||||
|
||||
|
||||
class StateWrapper(DeviceStateHandler.Listener, DealerClient.MessageListener):
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from librespot.player import PlayerConfiguration
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
from __future__ import annotations
|
||||
from librespot.common import Utils
|
||||
from librespot.core import Session
|
||||
from librespot.player import PlayerConfiguration
|
||||
from librespot.proto import Connect, Player
|
||||
|
||||
import base64
|
||||
import concurrent.futures
|
||||
import enum
|
||||
@@ -11,6 +8,11 @@ import time
|
||||
import typing
|
||||
import urllib.parse
|
||||
|
||||
from librespot.common import Utils
|
||||
from librespot.core import Session
|
||||
from librespot.player import PlayerConfiguration
|
||||
from librespot.proto import Connect, Player
|
||||
|
||||
|
||||
class DeviceStateHandler:
|
||||
_LOGGER: logging = logging.getLogger(__name__)
|
||||
|
||||
Reference in New Issue
Block a user