script.extendedinfo
script.extendedinfo copied to clipboard
useful foldernames
Instead of having "extendedinfo script" in every window, it would be more useful / make more sense to set the type of info as the Container.FolderName
hmm could you give a more specific example? not sure if i got what you mean.
Well, when using the plugin paths Container.Foldername is set to "Extended info script" no matter what node you are in. What I'm suggesting is setting Container.FolderName to the title of the path that is being listed so it can be used in things like window titles / header / breadcrumb bars / whatever you want to call it, as that is more informative then the name of the script for the same reason as setting the foldername / window title to "Genres" instead of "Movies" is more informative when listing movie genres in the library.
Currently I'm using a variable to achieve this:
<variable name="tmdb:Path">
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=similarmovies)">$LOCALIZE[31509]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=airingtodaytvshows)">$ADDON[script.extendedinfo 32038]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=onairtvshows)">$ADDON[script.extendedinfo 32039]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=populartvshows)">$ADDON[script.extendedinfo 32041]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=incinemamovies)">$ADDON[script.extendedinfo 32042]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=upcomingmovies)">$ADDON[script.extendedinfo 32043]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=topratedtvshows)">$ADDON[script.extendedinfo 32044]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=topratedmovies)">$ADDON[script.extendedinfo 32046]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=ratedmovies)">$ADDON[script.extendedinfo 32135]</value>
<value condition="String.StartsWith(Container.FolderPath,plugin://script.extendedinfo/?info=ratedtvshows)">$ADDON[script.extendedinfo 32145]</value>
<value condition="String.IsEqual(Container.FolderPath,plugin://script.extendedinfo/)">Extended Info</value>
<value condition="String.IsEqual(Container.FolderPath,plugin://script.extendedinfo/tmdb)">The Movie Database</value>
</variable>
But it could be reduced to this: $INFO[Container.FolderName] when the foldername would be set as proposed.
tried Container.PluginCategory ?
Yes, doesn't work