# Make a song directory item
def songItem(self, songid, name, album, artist, coverart, trackLabelFormat=ARTIST_ALBUM_NAME_LABEL):
songImg = self._get_icon(coverart, 'song-' + str(songid) + "-image")
- if trackLabelFormat == NAME_ALBUM_ARTIST_LABEL:
+ if int(trackLabelFormat) == NAME_ALBUM_ARTIST_LABEL:
trackLabel = name + " - " + album + " - " + artist
else:
trackLabel = artist + " - " + album + " - " + name