@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."""
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.