2019-07-18, 16:41
I assume it's the "&" in the title.
To confirm, can you please try to hardcode it with "Burke%20%26%20Hare" to see if that works?
To confirm, can you please try to hardcode it with "Burke%20%26%20Hare" to see if that works?
(2019-07-18, 16:41)sualfred Wrote: I assume it's the "&" in the title.
To confirm, can you please try to hardcode it with "Burke%20%26%20Hare" to see if that works?
(2019-07-18, 18:34)sualfred Wrote: Try my github version of the helper
https://github.com/sualfred/script.embuary.helper
Add this to DialogVideoInfo:
<onload>RunScript(script.embuary.helper,action=encode,string='"$INFO[ListItem.TVShowTitle]"',prop=TVShowTitle)</onload>
<onunload>ClearProperty(TVShowTitle,home)</onunload>
And then you should be able to use $INFO[Window(home).Property(TVShowTitle)] to get the provided string as encoded one for your xsp node.
(2019-07-18, 18:34)sualfred Wrote: Try my github version of the helper
https://github.com/sualfred/script.embuary.helper
Add this to DialogVideoInfo:
<onload>RunScript(script.embuary.helper,action=encode,string='"$INFO[ListItem.TVShowTitle]"',prop=TVShowTitle)</onload>
<onunload>ClearProperty(TVShowTitle,home)</onunload>
And then you should be able to use $INFO[Window(home).Property(TVShowTitle)] to get the provided string as encoded one for your xsp node.
xml:<onload condition="[ContainerContent(episodes) | String.IsEqual(ListItem.DBTYPE,episode)] + [Skin.HasSetting(UseEnhancedDialog) + !Skin.HasSetting(UseExtendedInfoDialog)]">RunScript(script.embuary.helper,action=encode,string='"$INFO[ListItem.TVShowTitle]"',prop=DecodedTitle)</onload>
<onload condition="![ContainerContent(episodes) | String.IsEqual(ListItem.DBTYPE,episode)] + [Skin.HasSetting(UseEnhancedDialog) + !Skin.HasSetting(UseExtendedInfoDialog)]">RunScript(script.embuary.helper,action=encode,string='"$INFO[ListItem.Label]"',prop=DecodedTitle)</onload>
<onunload>ClearProperty(DecodedTitle,home)</onunload>
xml:
movie
%7B%22order%22%3A%7B%22direction%22%3A%22ascending%22%2C%22ignorefolders%22%3A0%2C%22method%22%3A%22sorttitle%22%7D%2C%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Container(8601).ListItem.Label]%22%5D%7D%2C%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22isnot%22%2C%22value%22%3A%5B%22$INFO[Window(home).Property(DecodedTitle)]%22%5D%7D%5D%7D%2C%22type%22%3A%22movies%22%7D
shows
%7B%22order%22%3A%7B%22direction%22%3A%22ascending%22%2C%22ignorefolders%22%3A0%2C%22method%22%3A%22sorttitle%22%7D%2C%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Container(8601).ListItem.Label]%22%5D%7D%2C%7B%22field%22%3A%22title%22%2C%22operator%22%3A%22isnot%22%2C%22value%22%3A%5B%22$INFO[Window(home).Property(DecodedTitle)]%22%5D%7D%5D%7D%2C%22type%22%3A%22tvshows%22%7D
(2019-07-19, 09:42)sualfred Wrote: Great.
But the prop has to be EncodedTitle, because you are encoding something
xml:
videodb://movies/titles/?xsp=%7B%22rules%22%3A%7B%22or%22%3A%5B%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Container(90050).ListItemAbsolute(0).Label]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Container(90050).ListItemAbsolute(1).Label]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Container(90050).ListItemAbsolute(2).Label]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Container(90050).ListItemAbsolute(3).Label]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Container(90050).ListItemAbsolute(4).Label]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Container(90050).ListItemAbsolute(5).Label]%22%5D%7D%2C%7B%22field%22%3A%22actor%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Container(90050).ListItemAbsolute(6).Label]%22%5D%7D%5D%7D%2C%22type%22%3A%22movies%22%7D
(2019-09-03, 09:10)sualfred Wrote: @bsoriano
I've reworked my "getitemsbyactor" function. Maybe it fits to your needs:
https://github.com/sualfred/script.embua...ndom-actor
https://github.com/sualfred/script.embua...iven-actor
Only available on the GitHub branch atm.
(2019-09-03, 07:40)sualfred Wrote: you cannot mix "or" and "and" with ?xsp.
But you can use https://github.com/sualfred/script.embua...the-script to create your own JSON call which supports this.
{'and': [{'or': [{'operator': 'is', 'field': 'actor', 'value': 'Vin Diesel'},{'operator': 'is', 'field': 'actor', 'value': 'Bruce Willis'},{'operator': 'is', 'field': 'actor', 'value': 'Sasha Grey'}]}, {'operator': 'isnot', 'field': 'title', 'value': 'Der Gigant aus dem All'}]}
(2019-09-03, 12:07)sualfred Wrote: Here is an example with multiple actors and a excluded title.
Code:
{'and': [{'or': [{'operator': 'is', 'field': 'actor', 'value': 'Vin Diesel'},{'operator': 'is', 'field': 'actor', 'value': 'Bruce Willis'},{'operator': 'is', 'field': 'actor', 'value': 'Sasha Grey'}]}, {'operator': 'isnot', 'field': 'title', 'value': 'Der Gigant aus dem All'}]}
(2019-09-03, 12:07)sualfred Wrote: Here is an example with multiple actors and a excluded title.@sualfred, should I encode the title into URL format to use in that JSON call or just leave the regular infolabel, such as '$INFO[ListItem.Title]?
Code:
{'and': [{'or': [{'operator': 'is', 'field': 'actor', 'value': 'Vin Diesel'},{'operator': 'is', 'field': 'actor', 'value': 'Bruce Willis'},{'operator': 'is', 'field': 'actor', 'value': 'Sasha Grey'}]}, {'operator': 'isnot', 'field': 'title', 'value': 'Der Gigant aus dem All'}]}