Commit 5175451c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Core: display $Z as Artist - Title

This is more coherent with the rest of the worlds...
(cherry picked from commit 1c81c0863ba03ec8022aed8a8e3bac81884dd509)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 747ca862
...@@ -903,17 +903,17 @@ char *str_format_meta( vlc_object_t *p_object, const char *string ) ...@@ -903,17 +903,17 @@ char *str_format_meta( vlc_object_t *p_object, const char *string )
if( p_item ) if( p_item )
{ {
char *psz_now_playing = input_item_GetNowPlaying( p_item ); char *psz_now_playing = input_item_GetNowPlaying( p_item );
if ( psz_now_playing == NULL ) if( EMPTY_STR( psz_now_playing ) )
{ {
char *psz_temp = input_item_GetTitleFbName( p_item ); char *psz_temp = input_item_GetTitleFbName( p_item );
char *psz_artist = input_item_GetArtist( p_item ); char *psz_artist = input_item_GetArtist( p_item );
if( !EMPTY_STR( psz_temp ) ) if( !EMPTY_STR( psz_artist ) )
{ {
INSERT_STRING( psz_temp ); INSERT_STRING( psz_artist );
if ( !EMPTY_STR( psz_artist ) ) if ( !EMPTY_STR( psz_temp ) )
INSERT_STRING_NO_FREE( " - " ); INSERT_STRING_NO_FREE( " - " );
} }
INSERT_STRING( psz_artist ); INSERT_STRING( psz_temp );
} }
else else
INSERT_STRING( psz_now_playing ); INSERT_STRING( psz_now_playing );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment