SmartPlaylists for episodes

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
harry3001 Offline
Junior Member
Posts: 46
Joined: Jun 2008
Reputation: 0
Post: #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: X72Bv.jpg]

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!
find quote
Jeroen Offline
Skilled Skinner
Posts: 2,498
Joined: Feb 2008
Reputation: 23
Location: The Netherlands
Post: #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
find quote
Jeroen Offline
Skilled Skinner
Posts: 2,498
Joined: Feb 2008
Reputation: 23
Location: The Netherlands
Post: #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
(This post was last modified: 2011-02-23 17:58 by Jeroen.)
find quote