https://bugs.kde.org/show_bug.cgi?id=454437
Bug ID: 454437 Summary: Ratings written using kid3-cli are inconsistently stored Product: kid3 Version: 3.9.x Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: uflei...@users.sourceforge.net Reporter: k...@huftis.org Target Milestone: --- Created attachment 149231 --> https://bugs.kde.org/attachment.cgi?id=149231&action=edit Zip file containing audio files in different formats SUMMARY When I set ratings using the GUI, they are correctly stored in the files, using each file format’s rating system. For example, see the attached files (with no ratings). If I set the rating to 4/5 stars in the UI, the following information is saved in the files: m4a: 80 (Rating Percent) mp3: 196 (Popularimeter) ogg: 80 wma: 75 (Shared User Rating) If I reopen the files, they are all (correctly) shown was 4/5 stars in the UI. However, if I use the command-line to try to do the same thing, the rating mapping doesn’t work. And which ratings are saved depends on *how* I invoke kid3-cli: 1) separate command for each file, or 2) using filename wildcards. If I do: for i in *; do kid3-cli -c 'set Rating 80' $i; done I get the following in the UI: m4a: 4 stars mp3: 2 stars ogg: 4 stars wma: 80 (numeric value, no stars shown) If I instead do: kid3-cli -c 'set Rating 80' * I get the following the UI: m4a: 80 (Rating Information) mp3: 80 (Rating Information) ogg: 80 (RATING INFORMATION) wma: 80 (Rating Information) STEPS TO REPRODUCE 1. Unzip the attached file into an empty folder. 2. In this folder, type: for i in *; do kid3-cli -c 'set Rating 80' $i; done 3. Unzip the attached file into another folder. 4. In this second folder, type: kid3-cli -c 'set Rating 80' * OBSERVED RESULT See above. EXPECTED RESULT The two methods of invoking kid3-cli should result in the *same* ratings stored. And the ratings should correspond to 4/5 stars. (Though I’m not sure the ‘Rating’ field is the correct field to use, as the scale is ill-defined. Perhaps a new field called ‘Stars’ or ‘RatingStars’ could be added?) SOFTWARE/OS VERSIONS Operating System: openSUSE Tumbleweed 20220522 KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.2 Kernel Version: 5.17.9-1-default (64-bit) -- You are receiving this mail because: You are watching all bug changes.