diff --git a/librespot/metadata/AlbumId.py b/librespot/metadata/AlbumId.py index 1558531..14efec8 100644 --- a/librespot/metadata/AlbumId.py +++ b/librespot/metadata/AlbumId.py @@ -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): diff --git a/librespot/metadata/ArtistId.py b/librespot/metadata/ArtistId.py index 98c1c2e..e3a8c68 100644 --- a/librespot/metadata/ArtistId.py +++ b/librespot/metadata/ArtistId.py @@ -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): diff --git a/librespot/metadata/ShowId.py b/librespot/metadata/ShowId.py index df9bb7d..1ec25c1 100644 --- a/librespot/metadata/ShowId.py +++ b/librespot/metadata/ShowId.py @@ -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): diff --git a/librespot/metadata/TrackId.py b/librespot/metadata/TrackId.py index 6344706..bf8d372 100644 --- a/librespot/metadata/TrackId.py +++ b/librespot/metadata/TrackId.py @@ -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): diff --git a/librespot/player/Player.py b/librespot/player/Player.py index 5397ffd..5def457 100644 --- a/librespot/player/Player.py +++ b/librespot/player/Player.py @@ -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): diff --git a/librespot/player/StateWrapper.py b/librespot/player/StateWrapper.py index cb2899d..148ee49 100644 --- a/librespot/player/StateWrapper.py +++ b/librespot/player/StateWrapper.py @@ -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): diff --git a/librespot/player/mixing/AudioSink.py b/librespot/player/mixing/AudioSink.py index 5e4234b..8e4420a 100644 --- a/librespot/player/mixing/AudioSink.py +++ b/librespot/player/mixing/AudioSink.py @@ -1,4 +1,5 @@ from __future__ import annotations + from librespot.player import PlayerConfiguration diff --git a/librespot/player/state/DeviceStateHandler.py b/librespot/player/state/DeviceStateHandler.py index 2cc50a2..17156ba 100644 --- a/librespot/player/state/DeviceStateHandler.py +++ b/librespot/player/state/DeviceStateHandler.py @@ -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__)