Kodi Community Forum

Full Version: problem by showing the Addon Icon According to its path
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could someone tell me where i do the mistake here?

i try to show the Addon Icon in a View according to its path

Code:
$INFO[Container.PluginName,plugin://,/icon.png]

nested between the texturetags in a Imgage Controll. But it stays Empty!

(shouldnt this work? / where did i made the mistake?)

--

i also noticed that:

"ListItem.Property(Addon.ID)"

and

"ListItem.Property(Addon.Path)"

doesnt return any value


I did also think about using the "special" protocol (special://xbmc) but as soon as someone install its Kodi portable the path will break.
(2016-04-19, 19:02)Rantanplan-1 Wrote: [ -> ]Could someone tell me where i do the mistake here?

i try to show the Addon Icon in a View according to its path

Code:
$INFO[Container.PluginName,plugin://,/icon.png]

nested between the texturetags in a Imgage Controll. But it stays Empty!

(shouldnt this work? / where did i made the mistake?)
nope, it shouldn't work like that.

plugin:// paths point to the virtual file system provided by the addon,
not to the physical installation path of the addon itself.

(2016-04-19, 19:02)Rantanplan-1 Wrote: [ -> ]i also noticed that:

"ListItem.Property(Addon.ID)"

and

"ListItem.Property(Addon.Path)"

doesnt return any value

confirmed. i've left a comment on the PR that broke those labels:
https://github.com/xbmc/xbmc/pull/9051/c...#r60316651

(2016-04-19, 19:02)Rantanplan-1 Wrote: [ -> ]I did also think about using the "special" protocol (special://xbmc) but as soon as someone install its Kodi portable the path will break.

are you sure? that seems very strange to me.
i'm not a windows user so can't test portable mode myself...
'Special' works fine in portable mode on Windows.
(2016-04-19, 23:44)ronie Wrote: [ -> ]nope, it shouldn't work like that.

plugin:// paths point to the virtual file system provided by the addon,
not to the physical installation path of the addon itself.

Thanks for clarification.

(2016-04-19, 23:44)ronie Wrote: [ -> ]confirmed. i've left a comment on the PR that broke those labels:
https://github.com/xbmc/xbmc/pull/9051/c...#r60316651

Thanks.

(2016-04-19, 23:44)ronie Wrote: [ -> ]are you sure? that seems very strange to me.
i'm not a windows user so can't test portable mode myself...

Was my fault, i have just to use different paths (addon_data) for portable Mode.

(as Hitcher already cleariefy, it works)

-> Works fine (now).

Thanks.