| Summary: | Import of amarok 1.4 collection fails to set "first played" date correctly | ||
|---|---|---|---|
| Product: | [Applications] amarok | Reporter: | Sebastian Strand <sebstrand> |
| Component: | general | Assignee: | Amarok Bugs <amarok-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | hydrogen, ruiz |
| Priority: | NOR | ||
| Version First Reported In: | 2.0-rc | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Sebastian Strand
2008-11-27 16:32:17 UTC
Seb, any ideas on this? Pretty sure it was working when I did so last, I'll have to do some more testing. It could be possible that you have multiple entries for the same urls which are causing the value to be overwritten (ie, different device ids merge to the same path) I just realized that the tracks had already been added to the collection when I did the import. I redid the whole thing, but this time I did the import first, then I added the music folders to the collection. Now "first played" is set correctly. Not sure if it is supposed to work if you do it the other way? Targetting this for 2.0 as I don't think it would be that complicated to pick the earlier date (and anyone that uses a2 with music in the default path might have a collection before they import it) If the importer is run before the default collection is built this can probably be pushed back, or if this is more complicated than it sounds to fix. SVN commit 897993 by seb: Do some slight sanity checking when updating metdata of imported tracks. eg: - don't set empty fields (rating, score, playcount) - don't set older lastPlayed or newer firstPlayed dates This is useful since there may be multiple database entries which map to single urls in the 1.4 database due to HDD changes and dynamic collections. This tries to take the best of each statistic row as the best heuristic. BUG: 176237 CCBUG: 174784 M +20 -5 SqlMeta.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=897993 |