(2021-10-22, 09:46)Chillbo Wrote: That's exactly what I had done here and it didn't work - a hidden list or fixed list container outside the normal focused layout of the current media view container. I placed it in MyVideoNav.xml, but it never properly updated... What might you be doing differently?
As said above, for refreshing use '-' value as fallback
This is my variable (adjusted to)
- where id =503 and 504 ares my viewtype (s)
- i dont like to show it if plugin has filled items, except tv shows
to have it 'refresh' i just add <value>-</value> at bootom , can be something, just have to be empty 'path'.
xml:
<variable name="View_503_Folderpath">
<value condition="Control.IsVisible(503) + [!String.StartsWith(listitem.path,plugin) + Container.Content(tvshows)]">videodb://tvshows/titles/$INFO[Container(503).ListItem.dbid]</value>
<value condition="Control.IsVisible(503) + [!String.StartsWith(listitem.path,plugin) + String.IsEqual(Container.ListItem.dbtype,set)]">$INFO[Container.ListItem.FolderPath]</value>
<value condition="Control.IsVisible(503) + [!String.StartsWith(listitem.path,plugin) + !String.IsEmpty(Container.ListItem.SetId)]">videodb://movies/sets/$INFO[Container.ListItem.setid]/?setid=$INFO[Container.ListItem.setid]</value>
<value condition="Control.IsVisible(504) + [!String.StartsWith(listitem.path,plugin) + Container.Content(tvshows)]">videodb://tvshows/titles/$INFO[Container(504).ListItem.dbid]</value>
<value condition="Control.IsVisible(504) + [!String.StartsWith(listitem.path,plugin) + String.IsEqual(Container.ListItem.dbtype,set)]">$INFO[Container.ListItem.FolderPath]</value>
<value condition="Control.IsVisible(504) + [!String.StartsWith(listitem.path,plugin) + !String.IsEmpty(Container.ListItem.SetId)]">videodb://movies/sets/$INFO[Container.ListItem.setid]/?setid=$INFO[Container.ListItem.setid]</value>
<value condition="String.StartsWith(listitem.path,plugin) + String.IsEqual(Container.ListItem.dbtype,tvshow)">$INFO[Container.ListItem.FolderPath]</value>
<value>-</value>
</variable>
Than outside of List
$INFO[Container(50352).NumItems]
where 50352 is a container ,which using
$VAR[View_503_Folderpath] in the content tag
-- PS Cleaner code xample abvove
for proof ia dd vid ,check orange label, refresh time sucks, but only working method
https://streamable.com/vsag55