Skip to content

Commit cbdfa59

Browse files
OzGavCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 46d2a08 commit cbdfa59

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

music_assistant/providers/musicbrainz/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,8 @@ async def get_isrcs_for_recording(self, recording_id: str) -> list[str]:
439439
:return: List of ISRCs, or empty list if not found or on error.
440440
"""
441441
# the search response includes the ISRCs, so either ID kind costs one call
442-
query = f"rid:{recording_id} OR tid:{recording_id}"
442+
safe_id = re.sub(LUCENE_SPECIAL, r"\\\1", recording_id)
443+
query = f"rid:{safe_id} OR tid:{safe_id}"
443444
if (result := await self.get_data("recording", query=query)) and (
444445
recordings := result.get("recordings")
445446
):

0 commit comments

Comments
 (0)