lint fixes
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 28 Mar 2025 00:43:45 +0000 (01:43 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 28 Mar 2025 00:43:45 +0000 (01:43 +0100)
music_assistant/providers/ytmusic/__init__.py
requirements_all.txt

index 87db9e136cdee5c9ee9433bf2a122583df135cf7..170bdad2666f2e5043fbfa66b65ed68d805cb793 100644 (file)
@@ -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)
index 3e930e406a7e6c52254fcc2a13bfcb8356e99783..ae28e29ebc6496ab9705b4abc06531873ac0e657 100644 (file)
@@ -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