How to show different artist name?
Using Jamroom
I now have the code working in the audio/video players, and the album players - but not playlists.
For it to work in the playlist players, I need to tweak the code somehow to account for songs and videos being in the same player at the same time. I know how to make it work for one or the other, but not both.
I need something that says, if it's a song run this:
artist: "{if strlen($item._item.audio_alternate_artist) > 0}
{$item._item.audio_alternate_artist}{else}{$item.artist}{/if}",
If it's a video, run this:
artist: "{if strlen($item._item.video_alternate_artist) > 0}
{$item._item.video_alternate_artist}{else}{$item.artist}{/if}",
Perhaps coded somewhat like this, but with the proper statement for (playlist file=video/audio)
artist: "{if strlen($item._item.video_alternate_artist) > 0} && (playlist file = video)
{$item._item.video_alternate_artist}{elseif strlen($item._item.audio_alternate_artist) > 0} && (playlist file = audio)
{$item._item.audio_alternate_artist}{else}{$item.artist}{/if}",
Does that make sense? If it's close enough to see what I'm trying to do, can someone please enlighten me as to the proper way to code it - thanks.