From: Marcel van der Veldt Date: Fri, 28 Mar 2025 00:43:45 +0000 (+0100) Subject: lint fixes X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=498903795b0c7b88eb0d3bb32e5dae1718c5acb7;p=music-assistant-server.git lint fixes --- diff --git a/music_assistant/providers/ytmusic/__init__.py b/music_assistant/providers/ytmusic/__init__.py index 87db9e13..170bdad2 100644 --- a/music_assistant/providers/ytmusic/__init__.py +++ b/music_assistant/providers/ytmusic/__init__.py @@ -166,8 +166,10 @@ async def get_config_entries( default_value=DEFAULT_PO_TOKEN_SERVER_URL, label="PO Token Server URL", required=True, - description="The URL to the PO Token server. Can be left as default for most people. \n\n" - "**Note that this does require you to have the 'YT Music PO Token Generator' addon installed!**", + description="The URL to the PO Token server. " + "Can be left as default for most people. \n\n" + "**Note that this does require you to have the " + "'YT Music PO Token Generator' addon installed!**", ), ) @@ -191,7 +193,9 @@ class YoutubeMusicProvider(MusicProvider): ) if not await self._verify_po_token_url(): raise LoginFailed( - "PO Token server URL is not reachable. Make sure you have installed the YT Music PO Token Generator addon from the MusicAssistant repository and that it is running." + "PO Token server URL is not reachable. " + "Make sure you have installed the YT Music PO Token Generator " + "and that it is running." ) yt_username = self.config.get_value(CONF_USERNAME) self._yt_user = yt_username if is_brand_account(yt_username) else None @@ -616,7 +620,8 @@ class YoutubeMusicProvider(MusicProvider): if "__Secure-3PAPISID" not in self._cookie: raise LoginFailed( "Invalid Cookie detected. Cookie is missing the __Secure-3PAPISID field. " - "Please ensure you are passing the correct cookie. You can verify this by checking if the string" + "Please ensure you are passing the correct cookie. " + "You can verify this by checking if the string " "'__Secure-3PAPISID' is present in the cookie string." ) sapisid = sapisid_from_cookie(self._cookie) diff --git a/requirements_all.txt b/requirements_all.txt index 3e930e40..ae28e29e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -13,6 +13,7 @@ aiosonos==0.1.9 aiosqlite==0.21.0 async-upnp-client==0.43.0 audible==0.10.0 +bgutil-ytdlp-pot-provider==0.8.1 bidict==0.23.1 certifi==2025.1.31 colorlog==6.9.0 @@ -52,6 +53,5 @@ unidecode==1.3.8 websocket-client==1.8.0 xmltodict==0.14.2 yt-dlp==2025.3.26 -bgutil-ytdlp-pot-provider==0.8.1 ytmusicapi==1.10.2 zeroconf==0.146.1