Favourites Script - Shared File
#1
Hey, I''m using mysql server to share db's.

recently I tried to share the "favourites.xml" file with:
Code:
<substitute>
<from>special://masterprofile/favourites.xml</from>
<to>smb://192.168.1.10/XBMC/Settings/favourites.xml</to>
</substitute>
It is working great, but only problem is when I'm trying to set Custom menu in skin settings, It search favourite in the LOCAL file and not from the shared one....
any way to tell the script that the file is in a remote pc? favourites windows (from shutdown menu etc) - is working fine (ActiveMenu(Favourites)) only things with "runscript..." is pointing at local favourites.xml file.

many thanks!
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#2
nope, python addons and path substitution don't work together.
kodi does not expose the substituted path to addons.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
OK thanks,
another question,
is there any way to check if "logo.png" is exsist in movie folder?
Like I'm trying to show some art only if no logo (clearlogo) and I need to check if no "logo.png"
<visible>IsEmpty(Player.Art(clearlogo)) + ??(logo.png)</visible>
something like this

10x again
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#4
nope, checking for file existence is not possible in kodi.

there are a few workarounds that you can use instead though.

for example, i'm using code similar to this in Transparency!:
Code:
<control type="image" id="999">
    ...
    <texture background="true">$INFO[Player.FolderPath,,logo.png]</texture>
</control>

<control type="image">
    ...
    <texture>fallback-logo.png</texture>
    <visible>IsEmpty(Control.GetLabel(999))</visible>
</control>
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#5
thank you again.
Code:
<texture background="true" fallback="$INFO[Listitem.Path,,logo.png]">$INFO[ListItem.Art(clearlogo)]</texture>

here I'm trying to show the logo for a movie in two conditions: 1. If has logo in the db (via artwork downloader) 2. if not - and there is local logo.png - show the logo.png
for some reason, this is never goes to the "fallback" part. if I take the fallback part and replace with the main one, it does work. (local logo.png is appear)
any reason for "fallback" not being called here?
I tried to see in label control what: $INFO[ListItem.Art(clearlogo)] is returning - and the answer is nothing...
so fallback should work here right?
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#6
you can't use $INFO[] labels as fallback.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply

Logout Mark Read Team Forum Stats Members Help
Favourites Script - Shared File0