[mb-commits] branch, mbs-5672, created. MBS-5672, use artist-credit as a key instead of artist_credit, in the /ws/ 2 j...

MusicBrainz Git Server <[email protected]>
Newsgroups gmane.comp.audio.musicbrainz.cvs
Message-ID <E1Tiiw7-00076l-If@wiley>
The branch, mbs-5672 has been created
        at  299eef8bdc0bcc2952899c209b23af8f06cbe697 (commit)

- Log -----------------------------------------------------------------
commit 299eef8bdc0bcc2952899c209b23af8f06cbe697
Author: warp <[email protected]>
Date:   Wed Dec 12 10:47:53 2012 +0100

    MBS-5672, use artist-credit as a key instead of artist_credit, in the /ws/2 json serialization of media.

diff --git a/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Medium.pm b/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Medium.pm
index e6ef451..b7f6ee3 100644
--- a/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Medium.pm
+++ b/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Medium.pm
@@ -43,7 +43,7 @@ sub serialize
             $track_entity->recording, $inc, $stash)
             if $inc->recordings;
 
-        $track_output{artist_credit} = serialize_entity (
+        $track_output{"artist-credit"} = serialize_entity (
             $track_entity->artist_credit, $inc, $stash)
             if $inc->artist_credits;
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
mb_server
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.