Summary: | Tracks I've listened to eventually reappear as never played | ||
---|---|---|---|
Product: | [Applications] amarok | Reporter: | robert marshall <robert> |
Component: | Playlists/Automated Playlist Generator | Assignee: | Amarok Developers <amarok-bugs-dist> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kde-bugzilla, ralf-engels, stharward |
Priority: | NOR | Keywords: | release_blocker |
Version: | 2.4.1 | ||
Target Milestone: | 2.4.2 | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.4.2 | |
Sentry Crash Report: |
Description
robert marshall
2011-06-21 09:05:55 UTC
This also happens for me and I can finally reproduce it. 1) Rate a track. FMPS tag is store (see #274923) 2) Rescan the collection 3) Playcount of that track becomes 0 but rating and last_played stays the same. Confirmed by several reports. This is a dataloss bug. :( Is that a "full rescan"? The following is probably happening: 1. rating a track will write a POPM id3 file. 2. a POPM tag includes the rating and a playcount 3. a full rescan will read the tracks as present on the disk 4. As the track on the disk has a playcount at the time of rating, that one will be restored. It's probably not what we want, but a full-rescan that only restores half of the tags is inconsistent. Please advice how you want to have this fixed. It’s a "full rescan", yes. It doesn’t only affect MP3 files but FLAC files too. So not sure about the POPM id3 thing. Furthermore, how does it help to restore the playcount of the time when the file was last rated? That information is probably very old and almost as wrong as playcount=0. IMO there’s even an advantage of having playcount=0 because you know that the information is not there. Wrong information is always worse than no information. Actually the full rescan restores the information in the database from the files. If there is a playcount information present, then it will be set. However that shouldn't happen with FLAC files as the rating is not coupled there. For now I would change it so that it uses the highest number from the file or database. Git commit cf25d80897da1363ab63009fefb336351ca14dde by Ralf Engels. Committed on 04/07/2011 at 17:46. Pushed by rengels into branch 'master'. Full scan should not decrease playcount BUG:276172 M +1 -2 src/core-impl/collections/db/sql/SqlScanResultProcessor.cpp http://commits.kde.org/amarok/cf25d80897da1363ab63009fefb336351ca14dde |