Only set track artist if it's different from the release artist

This makes it easier to change the artist of the release and
all the tracks in the release editor (for single-artist releases).
This commit is contained in:
Philip Jägenstedt
2011-06-11 00:03:25 +02:00
parent 219ddb1f69
commit f190818e82

View File

@@ -67,7 +67,8 @@ class AddClusterAsRelease(BaseAction):
nv("mediums.%d.track.%d.%s" % (m, i, n), v)
tnv("name", file.metadata["title"])
tnv("artist_credit.names.0.name", file.metadata["artist"])
if file.metadata["artist"] != cluster.metadata["artist"]:
tnv("artist_credit.names.0.name", file.metadata["artist"])
tnv("length", str(file.metadata.length))
f.write(HTML_TAIL)