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:
commit
e1affba4ba
|
@ -981,7 +981,7 @@ bool TagReader::SaveSongRatingToFile(
|
||||||
if (filename.isNull()) return false;
|
if (filename.isNull()) return false;
|
||||||
|
|
||||||
qLog(Debug) << "Saving song rating tags to" << filename;
|
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
|
// 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.
|
// 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
|
// Actually, we should also remove tag set in this case, but in
|
||||||
|
|
Loading…
Reference in New Issue