From f197b9d877446e597a69dc1fa5aef85d8218b91f Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 11 Jan 2025 17:42:15 +0100 Subject: [PATCH] Fix renamed Pluginsource --- music_assistant/models/plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/music_assistant/models/plugin.py b/music_assistant/models/plugin.py index 84e541f4..0060082e 100644 --- a/music_assistant/models/plugin.py +++ b/music_assistant/models/plugin.py @@ -10,7 +10,7 @@ from music_assistant_models.enums import MediaType from .provider import Provider if TYPE_CHECKING: - from music_assistant_models.player import PlayerSource + from music_assistant_models.media_items import PluginSource from music_assistant_models.streamdetails import StreamDetails # ruff: noqa: ARG001, ARG002 @@ -23,12 +23,12 @@ class PluginProvider(Provider): Plugin Provider implementations should inherit from this base model. """ - async def get_sources(self) -> list[PlayerSource]: # type: ignore[return] + async def get_sources(self) -> list[PluginSource]: # type: ignore[return] """Get all audio sources provided by this provider.""" # Will only be called if ProviderFeature.AUDIO_SOURCE is declared raise NotImplementedError - async def get_source(self, prov_source_id: str) -> PlayerSource: # type: ignore[return] + async def get_source(self, prov_source_id: str) -> PluginSource: # type: ignore[return] """Get AudioSource details by id.""" # Will only be called if ProviderFeature.AUDIO_SOURCE is declared raise NotImplementedError @@ -36,7 +36,7 @@ class PluginProvider(Provider): async def get_stream_details( self, item_id: str, media_type: MediaType = MediaType.TRACK ) -> StreamDetails: - """Return the streamdetails to stream a naudiosource provided by this plugin.""" + """Return the streamdetails to stream an (audio)source provided by this plugin.""" # Will only be called if ProviderFeature.AUDIO_SOURCE is declared raise NotImplementedError -- 2.34.1