From 8cc78652c76b8db533bbf2c03c066afd45f228e9 Mon Sep 17 00:00:00 2001
From: Agate <me@agate.blue>
Date: Mon, 3 Aug 2020 15:49:14 +0200
Subject: [PATCH] Support coma separated mbids in tags

---
 api/funkwhale_api/music/metadata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/funkwhale_api/music/metadata.py b/api/funkwhale_api/music/metadata.py
index 6a9847e447..6a3334f2fa 100644
--- a/api/funkwhale_api/music/metadata.py
+++ b/api/funkwhale_api/music/metadata.py
@@ -494,7 +494,7 @@ class ArtistField(serializers.Field):
 
     def to_internal_value(self, data):
         # we have multiple values that can be separated by various separators
-        separators = [";"]
+        separators = [";", ","]
         # we get a list like that if tagged via musicbrainz
         # ae29aae4-abfb-4609-8f54-417b1f4d64cc; 3237b5a8-ae44-400c-aa6d-cea51f0b9074;
         raw_mbids = data["mbids"]
-- 
GitLab