From e1eca1ebc06cd7d511489927114d7bb1017475ff Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Fri, 11 Sep 2020 23:13:52 +0200 Subject: [PATCH] trying to fix the auto test --- .github/workflows/test.yml | 1 + music_assistant/providers/webplayer/__init__.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0855335..f44c611e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | + apt-get install -y --no-install-recommends libsndfile1 libtag1v5 libtag1-dev python -m pip install --upgrade pip pip install tox tox-gh-actions pre-commit pre-commit install-hooks diff --git a/music_assistant/providers/webplayer/__init__.py b/music_assistant/providers/webplayer/__init__.py index 112942a9..528913e3 100644 --- a/music_assistant/providers/webplayer/__init__.py +++ b/music_assistant/providers/webplayer/__init__.py @@ -61,6 +61,10 @@ class WebPlayerProvider(PlayerProvider): ) self.mass.add_job(self.async_check_players()) + async def async_on_stop(self): + """Handle correct close/cleanup of the provider on exit. Called on shutdown.""" + # nothing to do ? + async def async_handle_mass_event(self, msg, msg_details): """Handle received event for the webplayer component.""" if msg == EVENT_WEBPLAYER_REGISTER: -- 2.34.1