Fix minor issue in cue parser with date and genre
This commit is contained in:
@@ -83,9 +83,7 @@ SongList CueParser::Load(QIODevice *device, const QString &playlist_path, const
|
|||||||
QString file;
|
QString file;
|
||||||
QString file_type;
|
QString file_type;
|
||||||
QString album_genre;
|
QString album_genre;
|
||||||
QString genre;
|
|
||||||
QString album_date;
|
QString album_date;
|
||||||
QString date;
|
|
||||||
QString disc;
|
QString disc;
|
||||||
|
|
||||||
// -- FILE section
|
// -- FILE section
|
||||||
@@ -150,6 +148,8 @@ SongList CueParser::Load(QIODevice *device, const QString &playlist_path, const
|
|||||||
QString artist;
|
QString artist;
|
||||||
QString composer;
|
QString composer;
|
||||||
QString title;
|
QString title;
|
||||||
|
QString date;
|
||||||
|
QString genre;
|
||||||
|
|
||||||
// TRACK section
|
// TRACK section
|
||||||
do {
|
do {
|
||||||
@@ -169,7 +169,7 @@ SongList CueParser::Load(QIODevice *device, const QString &playlist_path, const
|
|||||||
// the beginning of another track's definition - we're saving the current one for later (if it's valid of course)
|
// the beginning of another track's definition - we're saving the current one for later (if it's valid of course)
|
||||||
// please note that the same code is repeated just after this 'do-while' loop
|
// please note that the same code is repeated just after this 'do-while' loop
|
||||||
if (valid_file && !index.isEmpty() && (track_type.isEmpty() || track_type == kAudioTrackType)) {
|
if (valid_file && !index.isEmpty() && (track_type.isEmpty() || track_type == kAudioTrackType)) {
|
||||||
entries.append(CueEntry(file, index, title, artist, album_artist, album, composer, album_composer, genre, (date.isEmpty() ? album_date : date), disc));
|
entries.append(CueEntry(file, index, title, artist, album_artist, album, composer, album_composer, (genre.isEmpty() ? album_genre : genre), (date.isEmpty() ? album_date : date), disc));
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear the state
|
// clear the state
|
||||||
|
|||||||
Reference in New Issue
Block a user