Bug 429933

Summary: Tracks do not appear in "Often played" and "recently played" when not indexed, which is not obvious
Product: [Applications] Elisa Reporter: postix <postix>
Component: generalAssignee: Matthieu Gallien <matthieu_gallien>
Status: CONFIRMED ---    
Severity: minor CC: jackhill3103, nate, postix
Priority: NOR    
Version First Reported In: 20.08.3   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description postix 2020-12-02 16:04:28 UTC
SUMMARY

It seems that the "Often played" section does not get updated. I now have played many other songs, each several times, but this section hasn't changed.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2020-12-03 19:30:37 UTC
Are you using Baloo?
Comment 2 postix 2020-12-03 19:34:13 UTC
(In reply to Nate Graham from comment #1)
> Are you using Baloo?

No, I don't. If it's required though, maybe an inline hint would be useful (maybe also with a cool drawing in the center to make it look less empty. :_P)
Comment 3 Nate Graham 2020-12-03 19:43:51 UTC
Indeed, I believe this does not work without Baloo. Maybe we should hide those views when Baloo is not in use.
Comment 4 postix 2020-12-03 20:05:09 UTC
> Indeed, I believe this does not work without Baloo. Maybe we should hide
> those views when Baloo is not in use.

I tried it on a laptop, where I have installed Manjaro as well but with Baloo enabled. I played few radios and then copied mp3s to ~/Music, which I played. None if it appears in the mentioned sections.

I'd also wonder what Baloo actually has to do with these sections: Shouldn't the recently played and often played section not be completely managed by Elisa?

Also eg Baloo doesn't know anything about the readio streams and such.
Comment 5 Jack Hill 2023-06-15 12:56:41 UTC
Works fine for me regardless of whether the indexer is set to Baloo or directly scanning the file system. Can anyone still reproduce?
Also I don't think this data was ever read or written to/from the files on disk, only the database so I don't see how this could be Baloo specific.
Comment 6 Nate Graham 2023-06-16 00:30:23 UTC
Yeah what was I thinking, this should work fine without Baloo and it does for me.

Postix, can you still reproduce the issue?
Comment 7 postix 2023-06-16 09:45:01 UTC
I haven't used Elisa for a very long time now but I fired version 23.04.2 up to check:

1) Dragged and dropped a bunch of songs into a Elisa (awesome that this works now!)
2) Played a short a song completely
3) Let it play another song

However, unfortunately the "often" and "recently" played section stay empty. Are there any other conditions required?
Comment 8 Jack Hill 2023-06-16 10:58:57 UTC
Yes, I believe that Elisa only stores statistics for files that are indexed.

Since you are dragging and dropping, I'm guessing your songs are not in a directory that is being indexed by Elisa. Is that so?
Comment 9 postix 2023-06-16 11:11:40 UTC
(In reply to Jack Hill from comment #8)
> Yes, I believe that Elisa only stores statistics for files that are indexed.
> 
> Since you are dragging and dropping, I'm guessing your songs are not in a
> directory that is being indexed by Elisa. Is that so?

Indeed. I dropped music from a subfolder which is supposed to be indexed, though Elisa is still indexing other folders first. When I tested it with already indexed music, it worked.

So I'd expect things I drag and drop to be indexed directly and with absolute priority. Otherwise it's confusing.