Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions music_assistant/providers/filesystem_local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,15 @@ async def _parse_track(
assert file_item.ext is not None # for type checking
lrc_path = f"{file_item.absolute_path.removesuffix(file_item.ext)}lrc"
if await self.exists(lrc_path):
async with aiofiles.open(lrc_path) as lrc_file:
track.metadata.lrc_lyrics = await lrc_file.read()
try:
async with aiofiles.open(lrc_path, encoding="utf-8") as lrc_file:
track.metadata.lrc_lyrics = await lrc_file.read()
except Exception as err:
self.logger.warning(
"Failed to read lyrics file %s: %s",
lrc_path,
str(err),
)

return track

Expand Down
Loading