Help with 'Smart Playlist'
#1
I am trying to write a smart playlist that will randomly play an episode of a given tv show.

Before its pointed out, yes I am aware I can choose all seasons and then shuffle to replicate this behavior. However I may combine some of these playlists so that a random episodes from a few different shows could be played.

The issue I am having is that the <order>random</order> field covered by the wiki article: http://wiki.xbmc.org/index.php?title=Smart_Playlist, is not seeming to return the results in random order. They always return in episode order, so the first episode of the first season is always played first and so on.

I'm using the latest GIT Trunk, but I get the same results with the latest GIT Eden branch as well.

Below is one of the playlists I wrote for the show "Leverage"
Code:
<?xml version="1.0"?>
<smartplaylist type="tvshows">
  <name>Random Leverage</name>
  <match>all</match>
  <rule field="tvshow" operator="is">Leverage</rule>
  <limit>0</limit>
  <order>random</order>
</smartplaylist>

Anyone have any ideas on what I'm doing wrong?
Reply
#2
In whatever view your using to display your playlist you need to change how that view is sorted, you need to set that view to "Sort by Playlist"
Current HTPC Lian-Li PC-C37 • Gigabyte GA-E7AUM-DS2H • Intel C2D E8400 E0 Stepping • OCZ Vertex SSD • 4GB Corsair TwinX XMS2 DDR2 • Corsair HX650W Modular PSU (Free Upgrade) • LG CH08LS10 Blu-Ray Drive • Scythe Big Shuriken • Acousti DustPROOF 70mm Fan
Reply
#3
I guess you want smartplaylist type = "episodes".

EDIT:

Example ..

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="episodes">
    <name>Random Dexter</name>
    <match>all</match>
    <rule field="tvshow" operator="is">Dexter</rule>
    <order direction="ascending">random</order>
</smartplaylist>
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#4
@vdrfan : Thanks I'll try that.

EDIT

That works! Thanks so much.
Reply
#5
Glad to hear. Thanks for the feedback.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
Help with 'Smart Playlist'0