Skip to content

Commit

Permalink
Merge pull request #6 from bct/fix-artist-name
Browse files Browse the repository at this point in the history
getArtist: artist_name -> name
  • Loading branch information
BinaryBrain authored Dec 13, 2022
2 parents 85ec64b + a46d3c8 commit b0c9373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beetsplug/beetstream/artists.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ def artist():
if (is_json(res_format)):
return jsonpify(request, wrap_res("artist", {
"id": artist_id,
"artist_name": artist_name,
"name": artist_name,
"album": list(map(map_album, albums))
}))
else:
root = get_xml_root()
artist_xml = ET.SubElement(root, 'artist')
artist_xml.set("id", artist_id)
artist_xml.set("artist_name", artist_name)
artist_xml.set("name", artist_name)

for album in albums:
a = ET.SubElement(artist_xml, 'album')
Expand Down

0 comments on commit b0c9373

Please sign in to comment.