Skip to content

Commit

Permalink
Merge pull request #3076 from Warepire/fix-cd-text-album-title-meta
Browse files Browse the repository at this point in the history
plugins: cdda: cdtext: Try reading magic track 0 first for album artist / title
  • Loading branch information
Oleksiy-Yakovenko committed Apr 9, 2024
2 parents 0345153 + 700b5f0 commit 6b69ff9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/cdda/cdda.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,10 @@ read_track_cdtext (CdIo_t *cdio, int track_nr, DB_playItem_t *item)
int field_type;
for (field_type = 0; field_type < MAX_CDTEXT_FIELDS; field_type++) {
#if CDIO_API_VERSION >= 6
const char *text = cdtext_get_const (cdtext, field_type, track_nr);
const char *text = cdtext_get_const (cdtext, field_type, 0);
if (!text) {
text = cdtext_get_const (cdtext, field_type, track_nr);
}
#else
const char *text = cdtext_get_const (field_type, cdtext);
#endif
Expand Down

0 comments on commit 6b69ff9

Please sign in to comment.