Switch to MA MusicBrainz mirror (#3186)
authorMarvin Schenkel <marvinschenkel@gmail.com>
Wed, 18 Feb 2026 18:04:47 +0000 (19:04 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Feb 2026 18:04:47 +0000 (19:04 +0100)
* Use MA Musicbrainz mirror and relax throttler.

* Use MA Musicbrainz mirror and relax throttler.

music_assistant/providers/musicbrainz/__init__.py

index c810f6056238bbcdd5475b3de83adfe8da9df731..74fe86eec1259bb972c2d46ab14e5a97f7b55890 100644 (file)
@@ -234,7 +234,7 @@ class MusicBrainzRecording(DataClassDictMixin):
 class MusicbrainzProvider(MetadataProvider):
     """The Musicbrainz Metadata provider."""
 
-    throttler = ThrottlerManager(rate_limit=1, period=30)
+    throttler = ThrottlerManager(rate_limit=5, period=1)
 
     async def handle_async_init(self) -> None:
         """Handle async initialization of the provider."""
@@ -430,7 +430,7 @@ class MusicbrainzProvider(MetadataProvider):
     @throttle_with_retries
     async def get_data(self, endpoint: str, **kwargs: str) -> Any:
         """Get data from api."""
-        url = f"https://musicbrainz.org/ws/2/{endpoint}"
+        url = f"https://musicbrainz-mirror.music-assistant.io/ws/2/{endpoint}"
         headers = {
             "User-Agent": f"Music Assistant/{self.mass.version} (https://music-assistant.io)"
         }