Skip to content

Commit b0c9373

Browse files
authored
Merge pull request #6 from bct/fix-artist-name
getArtist: artist_name -> name
2 parents 85ec64b + a46d3c8 commit b0c9373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beetsplug/beetstream/artists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ def artist():
7777
if (is_json(res_format)):
7878
return jsonpify(request, wrap_res("artist", {
7979
"id": artist_id,
80-
"artist_name": artist_name,
80+
"name": artist_name,
8181
"album": list(map(map_album, albums))
8282
}))
8383
else:
8484
root = get_xml_root()
8585
artist_xml = ET.SubElement(root, 'artist')
8686
artist_xml.set("id", artist_id)
87-
artist_xml.set("artist_name", artist_name)
87+
artist_xml.set("name", artist_name)
8888

8989
for album in albums:
9090
a = ET.SubElement(artist_xml, 'album')

0 commit comments

Comments
 (0)