Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useful foldernames #64

Open
jeroenpardon opened this issue May 17, 2017 · 4 comments
Open

useful foldernames #64

jeroenpardon opened this issue May 17, 2017 · 4 comments

Comments

@jeroenpardon
Copy link

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

@phil65
Copy link
Owner

phil65 commented Jun 1, 2017

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

@jeroenpardon
Copy link
Author

jeroenpardon commented Jun 1, 2017

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.

@phil65
Copy link
Owner

phil65 commented Jun 5, 2017

tried Container.PluginCategory ?

@jeroenpardon
Copy link
Author

Yes, doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants