script.extendedinfo icon indicating copy to clipboard operation
script.extendedinfo copied to clipboard

useful foldernames

Open jeroenpardon opened this issue 7 years ago • 4 comments

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

jeroenpardon avatar May 17 '17 16:05 jeroenpardon

hmm could you give a more specific example? not sure if i got what you mean.

phil65 avatar Jun 01 '17 13:06 phil65

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.

jeroenpardon avatar Jun 01 '17 20:06 jeroenpardon

tried Container.PluginCategory ?

phil65 avatar Jun 05 '17 00:06 phil65

Yes, doesn't work

jeroenpardon avatar Jul 23 '17 23:07 jeroenpardon