Merge pull request #6386 from ronjouch/fix-rating-not-written-to-file

Fix ratings not saved to file tag (Fix #6385)
This commit is contained in:
John Maguire 2019-08-09 10:26:33 +01:00 committed by GitHub
commit e1affba4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -981,7 +981,7 @@ bool TagReader::SaveSongRatingToFile(
if (filename.isNull()) return false;
qLog(Debug) << "Saving song rating tags to" << filename;
if (song.rating()) {
if (song.rating() < 0) {
// The FMPS spec says unrated == "tag not present". For us, no rating
// results in rating being -1, so don't write anything in that case.
// Actually, we should also remove tag set in this case, but in