diff options
author | Dave Blake <oak99sky@yahoo.co.uk> | 2021-02-08 07:55:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 07:55:16 +0000 |
commit | 0015404c08ae0668342af694974b550688aea6a8 (patch) | |
tree | e11cb05bf31dde4f7621aa6f0c5814930ab496ee | |
parent | 97f660dbb248d984d65bafd6745d7ffd71022cb2 (diff) | |
parent | 113df5b59c90779c517c54be6aafb0ee11050a8e (diff) |
Merge pull request #19192 from tielis/Move_Set_Rating_fix
Fix movie set rating with a single movie in it
-rw-r--r-- | xbmc/utils/GroupUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/GroupUtils.cpp b/xbmc/utils/GroupUtils.cpp index 340c11ab12..d69f96ef2c 100644 --- a/xbmc/utils/GroupUtils.cpp +++ b/xbmc/utils/GroupUtils.cpp @@ -128,7 +128,7 @@ bool GroupUtils::Group(GroupBy groupBy, const std::string &baseDir, const CFileI } setInfo->m_basePath = XFILE::CMultiPathDirectory::ConstructMultiPath(pathSet); - if (ratings > 1) + if (ratings > 0) pItem->GetVideoInfoTag()->SetRating(totalRatings / ratings); setInfo->SetPlayCount(iWatched >= static_cast<int>(set->second.size()) ? (setInfo->GetPlayCount() / set->second.size()) : 0); |