2011-02-08, 01:41
steppedup Wrote:It would be awesome to mimic the rhythmic nature of movies that keep us interested.
Start off with some comedy, then a drama or dramatic movie, then some more comedy, then a drama.
Kind of an up and down, emotional wave sort of thing.
No idea if that can be done generally, but if so, would be very cool!
Here's a sample "PseudoTV mixed" playlist I have setup.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="mixed">
<name>make-movie-mix</name>
<match>one</match>
<rule field="playlist" operator="is">get-action-movie.xsp</rule>
<rule field="playlist" operator="is">get-comedy-movie.xsp</rule>
<rule field="playlist" operator="is">get-drama-movie.xsp</rule>
<rule field="playlist" operator="is">get-adventure-movie.xsp</rule>
<rule field="playlist" operator="is">get-crime-movie.xsp</rule>
</smartplaylist>
Each get playlist returns one (1) random movie from that genre. My version of the buildMixedFilelist loops through each playlist which returns the one movie. Each show is added to the playlist in the same order as they are listed in the mixed playlist so you have some control of the ordering. Since I am not passing the <order> information, no randomization is done.
Here is the random 5 movies the above grabbed.
Home Alone
Lilo and Stich
44 Inch Chest
Hellfighters
Moon
If I didn't want my Comedies to contain any animation, I could add a rule to the get-comedy-movie where it excluded animation genre. The possibilities are endless.