Theses APL do not work for my collection. Even the Example given with amarok distribution. No result is returned and no message is popped up to notify it. pascal@minipc:~/Musique$ cat classiques.xml <?xml version="1.0" encoding="UTF-8"?> <playlistgenerator> <generatorpreset title="classiques"> <constrainttree> <group matchtype="any"> <constraint field="genre" comparison="3" invert="false" type="TagMatch" value="Classical" strictness="0.1"/> </group> </constrainttree> </generatorpreset> </playlistgenerator> pascal@minipc:~/Musique$ cat cat Exemple\ 2 \:\ rock\ ou\ musique\ pop.xml cat: cat: Aucun fichier ou dossier de ce type <?xml version="1.0" encoding="UTF-8"?> <playlistgenerator> <generatorpreset title="Exemple 2 : rock ou musique pop"> <constrainttree> <group matchtype="any"> <constraint field="genre" comparison="3" invert="false" type="TagMatch" value="Rock" strictness="1"/> <constraint field="genre" comparison="3" invert="false" type="TagMatch" value="Pop" strictness="1"/> </group> </constrainttree> </generatorpreset> </playlistgenerator>
Created attachment 106700 [details] lots of Classical tags in my collection
Created attachment 106701 [details] classical mp3 in local collection
running in debug mode while clicking on APL run button gives this pascal@minipc:~$ amarok: [APG::ConstraintSolver] New ConstraintSolver with serial number 1106544637 amarok: [APG::ConstraintNode] new constraint node at 0x37479710 with parent at 0x2f2223d0 amarok: [APG::ConstraintSolver] Domain has 4376 tracks amarok: [APG::ConstraintSolver] Running ConstraintSolver 1106544637 amarok: [APG::ConstraintSolver] solution at 0x7fb6f87a0730 amarok: [APG::Preset] Solver 1106544637 finished successfully amarok: BEGIN: void Playlist::Controller::insertOptioned(Meta::TrackList, Playlist::AddOptions) amarok: END__: void Playlist::Controller::insertOptioned(Meta::TrackList, Playlist::AddOptions) [Took: 0s] amarok: [APG::ConstraintNode] destroying constraint at 0x37479710 that has parent 0x2f2223d0
COnfirmed,the APG doesn't work at all anymore :-(
Cannot reproduce with either 2.8.90, or latest git (0340ec23f4df0250). Even the "classiques.xml" file from comment #0 works when imported into Amarok. If you're using 2.8.0, there was a bug I fixed in May 2015 (0b7492e709d9c8c37) that fixed a problem with zero-length playlists being returned. Upgrade and see if you still have the problem.
I confirm it works OK with latest git