Release script.skinvariables - Construct skin variables and perform other skin functions
#70
@jurialmunkey a little help please as I'm trying to add viewtypes for plugins but under certain conditions the dialog won't open.

json:
{
"prefix": "Exp_View",
"viewtypes": {
"50": "31161",
"51": "31130",
"52": "31111",
"53": "31160",
"54": "31112",
"55": "31159",
"56": "31172"
},
"rules": {
"images": {
"rule": "Container.Content(images)",
"viewtypes": ["50", "53", "55"],
"library": "50"
},
"videos": {
"rule": "Container.Content(videos)",
"viewtypes": ["50", "51", "52", "53", "55", "56"],
"library": "50"
},
"movies": {
"rule": "Container.Content(movies)",
"viewtypes": ["50", "51", "52", "53", "55", "56"],
"library": "53"
},
"sets": {
"rule": "Container.Content(sets)",
"viewtypes": ["53"],
"library": "53"
},
"videoversions": {
"rule": "Container.Content(videoversions)",
"viewtypes": ["50"],
"library": "50"
},
"tvshows": {
"rule": "Container.Content(tvshows)",
"viewtypes": ["51", "53"],
"library": "53"
},
"seasons": {
"rule": "Container.Content(seasons)",
"viewtypes": ["51", "53"],
"library": "53"
},
"episodes_library": {
"rule": "Container.Content(episodes)",
"viewtypes": ["50", "51", "52", "53", "55", "56"],
"library": "52"
},
"genres": {
"rule": "Container.Content(genres)",
"viewtypes": ["50"],
"library": "50"
},
"years": {
"rule": "Container.Content(years)",
"viewtypes": ["50"],
"library": "50"
},
"studios": {
"rule": "Container.Content(studios)",
"viewtypes": ["50"],
"library": "50"
},
"directors": {
"rule": "Container.Content(directors)",
"viewtypes": ["50"],
"library": "50"
},
"countries": {
"rule": "Container.Content(countries)",
"viewtypes": ["50"],
"library": "50"
},
"tags": {
"rule": "Container.Content(tags)",
"viewtypes": ["50"],
"library": "50"
},
"roles": {
"rule": "Container.Content(roles)",
"viewtypes": ["50"],
"library": "50"
},
"actors": {
"rule": "Container.Content(actors)",
"viewtypes": ["50"],
"library": "50"
},
"playlists": {
"rule": "Container.Content(playlists)",
"viewtypes": ["50"],
"library": "50"
},
"games": {
"rule": "Container.Content(games)",
"viewtypes": ["50", "53", "55"],
"library": "50"
},
"musicvideos": {
"rule": "Container.Content(musicvideos)",
"viewtypes": ["50", "53", "55"],
"library": "50"
},
"artists": {
"rule": "Container.Content(artists)",
"viewtypes": ["50"],
"library": "50"
},
"albums": {
"rule": "Container.Content(albums)",
"viewtypes": ["50"],
"library": "50"
},
"songs": {
"rule": "Container.Content(songs)",
"viewtypes": ["54", "50"],
"library": "54"
},
"files": {
"rule": "Container.Content(files)",
"viewtypes": ["50"],
"library": "50"
},
"sources": {
"rule": "Container.Content(sources)",
"viewtypes": ["50"],
"library": "50"
},
"addons": {
"rule": "Container.Content(addons)",
"viewtypes": ["50"],
"library": "50"
},
"none": {
"rule": "Container.Content()",
"viewtypes": ["50", "51", "52", "53", "55", "56"],
"library": "50"
}

}
}

xml:
<onclick>Runscript(script.skinvariables,action=buildviews,contentid=$INFO[Container.Content],pluginname=$INFO[Container.PluginName])</onclick>

Problem 1:

Image

Container.Content is episodes and Container.PluginName is plugin.video.iplayerwww

Clicking on the viewtype button doesn't open the dialog.

Problem 2:

Image

Container.Content is empty and Container.PluginName is plugin.video.amazon-test

Clicking on the viewtype button also doesn't open the dialog.

I'm sure there's something I'm missing but I can't work it out.

Thanks in advance.
Reply


Messages In This Thread
RE: script.skinvariables - Construct skin variables and perform other skin functions - by Hitcher - 2024-03-30, 19:21
Logout Mark Read Team Forum Stats Members Help
script.skinvariables - Construct skin variables and perform other skin functions0