SmartPlaylists for episodes
#1
I've been tweaking refocus so that i can use it as my main skin, but one thing that's been driving me crazy is trying to get 'extra' information to show in an episodes smart playlist, at the moment it looks like this:

Image

and i'm trying to add the show name so you can see it in the list without having to focus on the episode first... anyone have any ideas where/how to do it?
i think i need some kind of condition like Window.IsActive(videoplaylist)...?!
thanks!
Reply
#2
Good call on the tvshow title while in a smartplaylist, you'd definitely want to see the tvshow title in the list itself here.
A good solution for this escapes me at the moment to be honest.

One thing you could do is to show a label with the tvshowtitle in it and use

<visible>Container.Content(episodes) + ![substring(container.folderpath,videodb://)]</visible>

as a visibility condition, but this is very hackery and could cause problems elsewhere I think.

I would imagine there is a folderpath for smartplaylists, but I can't seem to find it.
Let me think about/investigate this some more and get back to you, I would want this incorporated in the skin.

Cheers,
Jeroen
Reply
#3
Found it, you can use

Code:
substring(Container.FolderPath,special://profile/playlists/video/)

There's a label in place already which prefixes ListItem.TVShowTitle when in recently added episodes. You could reuse this for smartplaylists.

So, in ViewsVideo.xml around line 365 you'll find:

PHP Code:
<control type="label">
    <
posx>40</posx>
    <
width>440</width>
    <
label>$INFO[ListItem.Title]</label>
    <
font>listBig</font>
    <include>
listMenu</include>
    <
visible>!stringcompare(container.folderpath,videodb://5/)</visible>
</control>
<
control type="label">
    <
posx>40</posx>
    <
width>440</width>
    <
label>$INFO[ListItem.TVShowTitle,,: ]$INFO[ListItem.Title]</label>
    <
font>listBig</font>
    <include>
listMenu</include>
    <
visible>stringcompare(container.folderpath,videodb://5/)</visible>
</control

Change this to:

PHP Code:
<control type="label">
    <
posx>40</posx>
    <
width>440</width>
    <
label>$INFO[ListItem.Title]</label>
    <
font>listBig</font>
    <include>
listMenu</include>
    <
visible>![stringcompare(container.folderpath,videodb://5/) | substring(Container.FolderPath,special://profile/playlists/video/)]</visible>
</control>
<
control type="label">
    <
posx>40</posx>
    <
width>440</width>
    <
label>$INFO[ListItem.TVShowTitle,,: ]$INFO[ListItem.Title]</label>
    <
font>listBig</font>
    <include>
listMenu</include>
    <
visible>stringcompare(container.folderpath,videodb://5/) | substring(Container.FolderPath,special://profile/playlists/video/)</visible>
</control

Do this for the focused layout as well obviously.

Not tested thoroughly yet, so unaware of possible complications elsewhere Wink
Reply

Logout Mark Read Team Forum Stats Members Help
SmartPlaylists for episodes0