<p>How about scripting console? I guess you can make db queries from it. That's how custom scripts work.</p>
<p><blockquote type="cite">W dniu 2010 3 10 06:59 użytkownik "Justin Brown" <<a href="mailto:justin.brown1.1@gmail.com">justin.brown1.1@gmail.com</a>> napisał:<br><br>I just bought a spindle of CDs, and I'm trying to create several disks of my top rated music for my 6-disk changer in my car. My idea was to use dynamic playlists with certain criteria such as:<div>
>3 stars</div><div>
0% of several albums that I will burn separately</div><div><br></div><div>The problem is that I don't have much music rated >3 stars, and consequently, I get a lot of duplicates in the generated playlist. This makes it very tedious to clean up the playlist, so that I don't burn duplicates.</div>

<div>My understanding is that Amarok uses an embedded MySQL database (by default), so it should seem like adding "distinct" to the MySQL query could eliminate this problem; however, I can't seem to find a way to do this. </div>

<div>The only downside that I could see for eliminating duplicates is a performance impact, especially since the playlist adds additional elements as the playlist proceeds (i.e. when one item is removed from the playlist, another is added). This could actually get very bad if the same track that matches the criteria but is already on the playlist keeps getting selected (and then rejected since it is a duplicate); the query could certainly overcome this by doing a NewTrackQuery(user specified criteria) - CurrentPlaylist. Sorry about the lack of official function calls -- I'm not familiar with the Amarok codebase. </div>

<div><br></div><div>I run into this problem quite a bit when I want to listen to my very highly rated music: lots of duplicates. </div><div><br></div><div>My initial idea if Amarok does not support this would be to switch to an external MySQL database, so I could run my own queries and create some playlists that I can burn. Is there any way that I could query the internal database, so I don't have to switch my library and run a full-blown MySQL instance on my laptop?</div>

<div><br></div><div>Does this "distinct" feature exits? If not, would the developers consider adding it?</div><div><br></div><div>Thanks,<br clear="all">Justin Brown<br><a href="mailto:justin.brown1.1@gmail.com" target="_blank">justin.brown1.1@gmail.com</a><br>


</div>
<br>_______________________________________________<br>
Amarok mailing list<br>
<a href="mailto:Amarok@kde.org">Amarok@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/amarok" target="_blank">https://mail.kde.org/mailman/listinfo/amarok</a><br>
<br></blockquote></p>