For future reference, here are the internal track types:
Music = 0
Jingle = 1
Sweeper = 2
Voiceover = 3
Commercial = 4
InternetStream = 5
Other = 6
VDF = 7
Podcast = 8
Request = 9
News = 10
PlaylistEvent = 11
FileByDate = 12
NewestFromFolder = 13
Teaser = 14
Now regarding the query, you've said that you need to play the commercials from "Paid Commercial" subcategory. Do you have tracks set as commercials in other subcategories too? I ask this because in your query you are simply querying about track type 4 without selecting a subcategory.
Ok the script finally work but now i have another problem i just tried creating an event that do those things in order:
1. Clear Playlist (hoping it clear everything in queue to be played)
2. Load Jingle Start Cluster
3. Load Rotation Commercial Cluster (the one with SQl string)
4. Load Jingle End Cluster
5. Load Normal Rotation
but it load only the 2 jingles and no commercials... where is the error?
The rotation won't add any tracks in the playlist because you already have something in it (the jingle). You could try something like this:
1. Clear playlist
2. Load sql query rotation
3. Load jingle start ON TOP
4. Load jingle end ON BOTTOM
5. Load normal rotation
The real problem in this approach is that there isn't a way to reset manually just a subcategory. The best fix for this would be to implement an event action to run sql queries, which i will do right now.
What i can do right now to help you is to write a small application which would allow you to run UPDATE sql queries, (like set play count=0) and then you can start it using events (Run application action). Let me know if this can help you.