Bug 313762 - "Automatic playlists" does not generate any playlist entries
Summary: "Automatic playlists" does not generate any playlist entries
Status: RESOLVED FIXED
Alias: None
Product: amarok
Classification: Applications
Component: Playlists/Automated Playlist Generator (show other bugs)
Version: 2.8.0
Platform: Other Linux
: NOR normal
Target Milestone: later
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks: 315206
  Show dependency treegraph
 
Reported: 2013-01-23 13:53 UTC by Mathias Homann
Modified: 2015-06-01 02:57 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.9


Attachments
exported playlist generator (740 bytes, text/xml)
2013-01-23 13:57 UTC, Mathias Homann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Homann 2013-01-23 13:53:44 UTC
I've created a playlist generator which simply picks songs with one out of three genres, that have not played in the last 7 days... and it does not do anything at all.

the generator is exported and attached to this report.


Reproducible: Always

Steps to Reproduce:
1. create a playlist generator that to your knowledge should find some songs
2. run it
3. observe playlist staying empty
Actual Results:  
playlist stays empty

Expected Results:  
playlist should contain some songs
Comment 1 Mathias Homann 2013-01-23 13:57:00 UTC
Created attachment 76662 [details]
exported playlist generator
Comment 2 Soren Harward 2013-01-24 23:52:03 UTC
First of all, I need you to make sure that you actually have tracks that satisfy those constraints.  Go to "Local Music", and in the filter box, type:

lastplay:>1w genre:"anime"

Do the same for the other two genres.  Confirm that some tracks actually match this filter.  This will let me know whether the APG is returning no results because your collection doesn't have any results to return, or whether there's actually an APG bug.
Comment 3 Mathias Homann 2013-01-25 10:35:42 UTC
I just verified that the genres in my filter do have tracks. a lot of tracks, actually.
Comment 4 shaddowy2 2013-02-22 00:53:31 UTC
I can confirm the problem with Amarok 2.7. I was hit by it some day and forgot to report that bug, sorry. 
As a workaround I found out that you have to additionally specify a play time constraint for the playlist (for example >30 min).
Comment 5 andromaex 2013-09-30 20:22:40 UTC
-this bug is also there at 2.8.0.
-a second strange thing is, (the above mentioned duration workaround works) but a duration of 
: longer than 30 min --> creates a playlist with a duration of 44 min
: longer than 45 min --> creates a playlist with a duration of 1:36 min
all other constraints are the same , without the duration contraint (but do not work without) i would expect an plalist with mor the 2h .
for my understanding 'longer than' should create playlist with all songs that match the constraints but have at least XX min playtime.
Comment 6 Mikhail Ivchenko 2013-12-04 09:37:43 UTC
Can confirm this bug at 2.8.0 too.
Comment 7 Soren Harward 2015-06-01 02:57:30 UTC
Git commit 0b7492e709d9c8c37e8d9e74f549d0073b775b19 by Soren Harward.
Committed on 01/06/2015 at 02:53.
Pushed by stharward into branch 'master'.

Fix long-standing bug: APG returns empty playlist

Well, that was dumb.  Added a sanity check where if the suggested
playlist size is 0 (which means "I don't really care what the playlist
size is"), then just go with whatever the non-zero size from the
previous iteration was.
Related: bug 315206, bug 323945

FIXED-IN: 2.9

M  +2    -0    ChangeLog
M  +2    -1    src/playlistgenerator/ConstraintSolver.cpp

http://commits.kde.org/amarok/0b7492e709d9c8c37e8d9e74f549d0073b775b19