From: Marcel van der Veldt Date: Wed, 26 Nov 2025 10:38:47 +0000 (+0100) Subject: typing fixes X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=63ad73ec7908681a0d886c36edca9bacdf27893c;p=music-assistant-server.git typing fixes --- diff --git a/music_assistant/providers/nicovideo/services/auth.py b/music_assistant/providers/nicovideo/services/auth.py index d454c740..f0cee250 100644 --- a/music_assistant/providers/nicovideo/services/auth.py +++ b/music_assistant/providers/nicovideo/services/auth.py @@ -27,7 +27,7 @@ class NicovideoAuthService(NicovideoBaseService): @property def is_logged_in(self) -> bool: """Check if the user is logged in to niconico.""" - return self.niconico_py_client.logined + return bool(self.niconico_py_client.logined) async def try_login(self) -> bool: """Attempt to login to niconico with the configured credentials.""" diff --git a/music_assistant/providers/nicovideo/services/video.py b/music_assistant/providers/nicovideo/services/video.py index c9fabc23..764f5d8b 100644 --- a/music_assistant/providers/nicovideo/services/video.py +++ b/music_assistant/providers/nicovideo/services/video.py @@ -129,7 +129,7 @@ class NicovideoVideoService(NicovideoBaseService): if not hls_url: raise UnplayableMediaError("Failed to get HLS content URL") - return hls_url + return str(hls_url) async def _fetch_media_playlist_text(self, hls_url: str, domand_bid: str) -> str: """Fetch media playlist text from HLS stream.