Commit 28e2ca98 authored by Rocky Bernstein's avatar Rocky Bernstein

Better about adding track author and title in track info

section. Also add the extended data.
parent c66e5c08
......@@ -431,10 +431,17 @@ static void InformationCreate( input_thread_t *p_input )
if (p_cdda->i_cddb_enabled) {
cddb_track_t *t=cddb_disc_get_track(p_cdda->cddb.disc,
i_track);
if (t != NULL && t->artist != NULL) {
if (t != NULL) {
if ( t->artist != NULL && strlen(t->artist) ) {
input_AddInfo( p_cat, _("Artist"), "%s", t->artist );
}
if ( t->title != NULL && strlen(t->title) ) {
input_AddInfo( p_cat, _("Title"), "%s", t->title );
}
if ( t->ext_data != NULL && strlen(t->ext_data) ) {
input_AddInfo( p_cat, _("Extended Data"), "%s", t->ext_data );
}
}
}
#endif
}
......
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