Kodi Community Forum

Full Version: Smart Playlists
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am having trouble combining smart playlists. I would like to make a playlist to list all tv episodes that we currently watch that have unwatched episodes. I made a smart playlist that has all our shows we currently watch and another playlist with unwatched episodes and then another playlist with those two playlists in it but it shows episodes for tv shows that don't match the first playlist. (I can post all three playlists if needed.)

Is this a known problem or is it just me?

J_K_M_A_N
Could you post what your playlists look like?

Thanks,
Mark
I'm also looking to do this. Would be very useful
I have been pretty busy. I should be able to post the playlists tomorrow. I know I had this working a long time ago on the xbox and I think I am doing everything the same but...

J_K_M_A_N
Here is the TV Show playlist that picks our current TV shows:

Code:
<smartplaylist type="episodes">
    <name>TV Shows</name>
    <match>one</match>
    <rule field="tvshow" operator="is">Breakout Kings</rule>
    <rule field="tvshow" operator="is">House</rule>
    <order direction="ascending">tvshow</order>
</smartplaylist>

And here is the other playlist. I have tried this one a couple different ways. I believe this is how it used to work on my old Xbox.

Code:
<smartplaylist type="episodes">
    <name>Unwatched TV Shows</name>
    <match>all</match>
    <rule field="playlist" operator="is">TV Shows.xsp</rule>
    <rule field="playcount" operator="is">0</rule>
    <order direction="ascending">tvshow</order>
</smartplaylist>

I have also tried to make an unwatched episodes playlist and put the two playlists into one but that doesn't work either. Here are all three playlists in that case.

Code:
<smartplaylist type="episodes">
    <name>TV Shows</name>
    <match>one</match>
    <rule field="tvshow" operator="is">Breakout Kings</rule>
    <rule field="tvshow" operator="is">House</rule>
    <order direction="ascending">tvshow</order>
</smartplaylist>


<smartplaylist type="episodes">
    <name>Unwatched Episodes</name>
    <match>all</match>
    <rule field="playcount" operator="is">0</rule>
    <limit>100</limit>
    <order direction="ascending">tvshow</order>
</smartplaylist>


<smartplaylist type="episodes">
    <name>Unwatched TV Shows</name>
    <match>all</match>
    <rule field="playlist" operator="is">TV Shows.xsp</rule>
    <rule field="playlist" operator="is">Unwatched Episodes.xsp</rule>
    <order direction="ascending">tvshow</order>
</smartplaylist>

Maybe I just have the types wrong? I really want to figure it out. Thanks for any help you can give.

J_K_M_A_N
See the ticket on track (11142) regarding combining of smartplaylists not functioning in current git HEAD, and add your playlists to that, along with the debug log lines that show the WHERE queries it's performing.
Actually, I wanna do something more along the lines of :
watched >1,
unwatched < total episodes

That way I can filter the series that I'm busy watching, rather than the ones I haven't started yet (there's too many of those).
But the more I think about it, I'll probably need a script rather than a playlist, won't I?
You can easily do both those with a smartplaylist - all you need is watched > 1 and unwatched > 1, right?
jmarshall Wrote:You can easily do both those with a smartplaylist - all you need is watched > 1 and unwatched > 1, right?

hm, had a quick look, there's no "unwatched" option (not in the gui anyway).
Also, not sure of the exact differences between tv shows and episodes.
If I use "episdoes" and go watched >1, then it just gives everything I've watched. If I choose TV shows, it gives nothing.

Think I need to play with it some more, but any tips will be most useful.
Thanks
In your final playlist:

<smartplaylist type="episodes">
<name>Unwatched TV Shows</name>
<match>all</match>
<rule field="playlist" operator="is">TV Shows.xsp</rule>
<rule field="playlist" operator="is">Unwatched Episodes.xsp</rule>
<order direction="ascending">tvshow</order>
</smartplaylist>

leave off the ".xsp" extension on your playlists. So your playlist should look like this:

<smartplaylist type="episodes">
<name>Unwatched TV Shows</name>
<match>all</match>
<rule field="playlist" operator="is">TV Shows</rule>
<rule field="playlist" operator="is">Unwatched Episodes</rule>
<order direction="ascending">tvshow</order>
</smartplaylist>

When you use another playlist as a rule, you need to leave off the ".xsp" file extension. Give that a try.

Another thing, I have found that if I use "playcount = 0", I do not get any returns however if I use "playcount lessthan 1" it works. Maybe it is just my setup I don't know. But that is how I have to do the playcount rule.

Mark
I will give that a shot. Thanks.

J_K_M_A_N
THAT WORKED! Thanks. Here are my new playlists.

Code:
<smartplaylist type="episodes">
    <name>Current TV Shows</name>
    <match>one</match>
    <rule field="tvshow" operator="is">Grey's Anatomy</rule>
    <rule field="tvshow" operator="is">Human Target</rule>
    <rule field="tvshow" operator="is">Lie to Me</rule>
    <rule field="tvshow" operator="is">Mentalist, The</rule>
    <rule field="tvshow" operator="is">Mr. Sunshine (2011)</rule>
    <rule field="tvshow" operator="is">Raising Hope</rule>
    <rule field="tvshow" operator="is">Rules of Engagement</rule>
    <rule field="tvshow" operator="is">The Big Bang Theory</rule>
    <order direction="ascending">tvshow</order>
</smartplaylist>

Code:
<smartplaylist type="episodes">
    <name>Unwatched TV Shows</name>
    <match>all</match>
    <rule field="playlist" operator="is">Current TV Shows</rule>
    <rule field="playcount" operator="lessthan">1</rule>
    <order direction="ascending">episodetitle</order>
</smartplaylist>

So my guess is that it tries to add on the .xsp but it was already added. This now works very well. Thanks for the help.

J_K_M_A_N
So that'll give you a list of episodes?
Not quite what I'm trying to do, but your examples will definitely help.
That gives me a list of episodes for those TV shows listed that we have not watched yet.

I have tried to think of a way to do what you want and I can't come up with one. Sorry. The best I could come up with was this:

Code:
<smartplaylist type="tvshows">
    <name>Started TV Shows</name>
    <match>all</match>
    <rule field="numwatched" operator="isnot">0</rule>
    <order direction="ascending">tvshow</order>
</smartplaylist>

This will list all the TV shows that have at least some watched episodes. But when I try to add that to another list to get the unwatched episodes, it doesn't seem to work. Not sure why.

J_K_M_A_N
It seems as though you can't mix "tvshows" playlists with "episode" playlists. Maybe that is something the team can verify. Every time I try, it doesn't work.

J_K_M_A_N
Pages: 1 2