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,9 +431,16 @@ static void InformationCreate( input_thread_t *p_input ) ...@@ -431,9 +431,16 @@ static void InformationCreate( input_thread_t *p_input )
if (p_cdda->i_cddb_enabled) { if (p_cdda->i_cddb_enabled) {
cddb_track_t *t=cddb_disc_get_track(p_cdda->cddb.disc, cddb_track_t *t=cddb_disc_get_track(p_cdda->cddb.disc,
i_track); i_track);
if (t != NULL && t->artist != NULL) { if (t != NULL) {
input_AddInfo( p_cat, _("Artist"), "%s", t->artist ); if ( t->artist != NULL && strlen(t->artist) ) {
input_AddInfo( p_cat, _("Title"), "%s", t->title ); 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 #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