Bug 382454 - amarock automatic playlist generator tagmatch does not work
Summary: amarock automatic playlist generator tagmatch does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: amarok
Classification: Applications
Component: Playlists/Automated Playlist Generator (show other bugs)
Version: 2.8.0
Platform: Other Linux
: HI normal
Target Milestone: 2.9
Assignee: Soren Harward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-18 07:25 UTC by p92
Modified: 2017-07-23 18:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
lots of Classical tags in my collection (172.32 KB, image/png)
2017-07-18 07:27 UTC, p92
Details
classical mp3 in local collection (221.50 KB, image/png)
2017-07-18 07:29 UTC, p92
Details

Note You need to log in before you can comment on or make changes to this bug.
Description p92 2017-07-18 07:25:46 UTC
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>
Comment 1 p92 2017-07-18 07:27:09 UTC
Created attachment 106700 [details]
lots of Classical tags in my collection
Comment 2 p92 2017-07-18 07:29:28 UTC
Created attachment 106701 [details]
classical  mp3 in local collection
Comment 3 p92 2017-07-18 07:39:28 UTC
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
Comment 4 Myriam Schweingruber 2017-07-18 13:44:09 UTC
COnfirmed,the APG doesn't work at all anymore :-(
Comment 5 Soren Harward 2017-07-18 14:15:24 UTC
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.
Comment 6 p92 2017-07-23 18:12:54 UTC
I confirm it works OK with latest git