Kodi Community Forum

Full Version: Using SkinString / $INFO[foo] in Smartplaylists? (Widgets?)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

I've managed to show only the "Main"- and "Custom"- Nodes in the Home- / Main- Menu

Now i try to Code the Widgets.

First i thuth i maybe could use "Skin.String(foo)" in Smartplaylists, but this didnt Work. Did also Try to use $INFO[Container(id).foo] which would be the easyer Solution for my usecase, but the SPl did stay emty.

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Nodepath try</name>
    <match>all</match>
    <rule field="path" operator="contains">
        <value>$INFO[SkinString(MainMenuNode1Path)]</value>
    </rule>
    <limit>25</limit>
    <order direction="ascending">random</order>
</smartplaylist>


Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
    <name>Nodepath try</name>
    <match>all</match>
    <rule field="path" operator="contains">
        <value>$INFO[Container(1000).Listitem...]</value>
    </rule>
    <limit>25</limit>
    <order direction="ascending">random</order>
</smartplaylist>

Shuld it be possible to use $INFO[] paths in Smartplaylists or is this not supported atm.?


If Not:
Are there may other Solutions how i can use a kinde of "variable" path in a Widget? ($VAR[FocusItemWidgetPath], $INFO[Container(1000).Listitem...] or $INFO[Skin.String(Foo)])

(Goal would be to use a Nodepath which can chanche if the user rearange his Nodes, (to show related Widgets).)




-----
EDIT:
Did now also try to use the special protocol to finde a Workaound

Code:
<value>special://userdata/library/video/movies</value>

But it looks like Nodepaths arnt valid paths at all. (No mather if set directly thru the dialog in a Skin or use the "special://" protocul while directly editing the SPl.)
A smart playlist isn't part of a skin; hence the reason it wont work.
God Hint.

Thanks

So whats left over?

using the new Jarvis sortorder, and sortby Tags with dynamic lists

or maybe missuse the "Random and last items" Skript in some way?

---

First i was excited and tought im verry verry close!

but i struggled.

Idea:

Code:
<content>videodb://$INFO[Container(5500).ListItem.Label]/titles<content>  <!-- which shows the Label from the Node (i.e. "movies") -->

<!-- or -->

<content>$INFO[Container(5500).ListItem.Folderpath]/titles.xml<content>   <!-- which shows FolderPath from the Node + "/titles.xml -->

And then use "sortby" and "sortorder"

I was sooo close. I've managed to show the (Parent-) Node-Content in the Widget (Genre,Title,Year,and so on) by using "ListItem.Folderpath" (2nd atempt from the Examples aboth without "/titles.xml")

Did touth the path shuld/could look like this:
Code:
library://video/movies/titles

<!-- or -->

library://video/movies/titles.xml

or

videodb://"labelfromNode"/Titles

none of them worked for me.

Undecided


EDIT:

Did also Try "Videos,videodb://$INFO[Container(5500).ListItem(foo).Label]/titles/". If set to Englisch it would be "Videos,videodb://Movies/titles/" for example

according to the wiki this should be a valid path, as long as i get it right.

but it wont show content even if i try directly "Videos,videodb://movies/titles/"

hmm..


--

EDIT2:

Restart Kodi solved the Problem.