Organise 'tools' modules into a subpackage

This commit is contained in:
Danielle McLean 2024-06-22 18:47:56 +10:00
parent 35703de261
commit 2def2aece5
Signed by: 00dani
GPG key ID: 6854781A0488421C
6 changed files with 3 additions and 3 deletions

View file

@ -35,9 +35,9 @@ from MediaPlayer import (
MPRemoteCommandHandlerStatusSuccess,
)
from ..async_tools import run_background_task
from ..player import Player
from ..song import PlaybackState, Song
from ..tools.asyncio import run_background_task
from .persistent_id import song_to_persistent_id

View file

@ -4,8 +4,8 @@ from typing import TypedDict
from yarl import URL
from ..async_tools import run_background_task
from ..cache import Cache, make_cache
from ..tools.asyncio import run_background_task
from .types import CurrentSongResponse, MpdStateHandler
CACHE_TTL = 60 * 60 # seconds = 1 hour

View file

@ -9,7 +9,7 @@ from yarl import URL
from ..config.model import MpdConfig
from ..player import Player
from ..song import PlaybackState, Song, SongListener
from ..type_tools import convert_if_exists
from ..tools.types import convert_if_exists
from .artwork_cache import MpdArtworkCache
from .types import CurrentSongResponse, StatusResponse

View file