diff --git a/src/pyramid/connector/spotify/search.py b/src/pyramid/connector/spotify/search.py index aa7ca48..afaa944 100644 --- a/src/pyramid/connector/spotify/search.py +++ b/src/pyramid/connector/spotify/search.py @@ -235,7 +235,7 @@ class SpotifyType(Enum): class SpotifyTools(AEngineTools): def extract_from_url(self, url) -> tuple[str, SpotifyType | None] | tuple[None, None]: # Extract ID and type using regex - pattern = r"(?<=open.spotify.com/)(intl-(?P\w+)/)?(?P\w+)/(?P\w+)" + pattern = r"(?<=open\.spotify\.com/)(intl-(?P\w+)/)?(?P\w+)/(?P\w+)" match = re.search(pattern, url) if not match: return None, None