Bug 364974 - Filtering on time since last played gives incorrect results for CDs
Summary: Filtering on time since last played gives incorrect results for CDs
Status: RESOLVED UNMAINTAINED
Alias: None
Product: amarok
Classification: Applications
Component: Collections/CD (show other bugs)
Version: 2.8-git
Platform: Kubuntu Linux
: NOR minor
Target Milestone: 2.9
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-01 11:53 UTC by robert marshall
Modified: 2022-11-20 20:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description robert marshall 2016-07-01 11:53:51 UTC
If I have a music CD recognised by amarok and I filter the collection (principally I did this for displaying tracks in my main collection rather than the CD) then lastplay:<1d gives me all the tracks on the cd (I don't think amarok stores collection data for cds?) when I've never played the CD before.
In fact if I change the filter to lastplay:<1M (tracks played in the last minute) it still gives me all the tracks! If you change the filter to playcount:=0 then it shows all the CD tracks (which is what I expected)
I'd expect filtering on time to give results consistent with the playcount.

Reproducible: Always
Comment 1 Myriam Schweingruber 2016-07-01 18:33:03 UTC
But: tracks to have playcount incremented need to be part of the collection permanently, which a CD isn't if you play it from the CD player.
So having no play-count incremented is the correct behavior for everything outside of the collection.
The last-play time will only show as such as long as the CD remains inserted, it will disappear once the CD is removed.

Does this satisfy you as an answer?
Comment 2 robert marshall 2016-07-02 09:19:43 UTC
Maybe I needed to be clearer!  It's the last play time which is incorrect (at least I think so), I think that filtering on values which are dependent upon stats of tracks in the collection should never be true for tracks which aren't in the collection 

Showing all cd tracks as played in the last minute (my guess is the last played time is some negative number) just feels wrong to me!
Comment 3 Myriam Schweingruber 2016-07-02 17:33:01 UTC
So you say this is not related to CD alone? What exactly would you expect to be the normal behavior?
As said before: everything not permanently in the collection will not show accurately when using filters that are meant to be used for collection items only. IMHO this is just a side-effect, as soon as you remove the CD these tracks should not appear in a filter anymore. Maybe this needs a little time to give Amarok the opportunity to update the stats.
Sadly I can test as I don't have a CD player at hand.
Comment 4 robert marshall 2016-07-09 11:21:14 UTC
No it's specific to a cd (any cd), I'd expect, when you set a filter to view all tracks played in the last hour, for amarok to show the  tracks you have played in the past hour and no other tracks!
Comment 5 Justin Zobel 2022-11-04 03:10:22 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 6 Bug Janitor Service 2022-11-19 05:13:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 robert marshall 2022-11-20 20:22:37 UTC
All cds within amarok claim to have zero tracks (which other applications don't) so no longer implemented!