(2023-11-16, 08:45)jurialmunkey Wrote: @manfeed Does using the "isdir" param with "PlayMedia()" on the container url not work?
i.e.
PlayMedia(plugin://CONTAINERURL,isdir)
Sorry, I have a number for the container, but I don’t know what is CONTAINERURL. How can I get that?
For instance, the container I use is:
code:
<control type="fixedlist" id="6828">
<width>680</width>
<height>390</height>
<onclick>PlayMedia($INFO[ListItem.Property(SongVideoURL)],1)</onclick>
<itemlayout width="675" height="43">
<control type="label">
<font>font15</font>
<width>670</width>
<height>43</height>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label][/B] $INFO[ListItem.Year,(,)]</label>
</control>
</itemlayout>
<focusedlayout width="675" height="43">
<control type="label">
<font>font15</font>
<left>1</left>
<height>43</height>
<width>670</width>
<align>left</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label][/B] $INFO[ListItem.Year,(,)]</label>
</control>
</focusedlayout>
<content>plugin://script.skinvariables/?info=get_filter_dir&library=music&filter_key__one=songvideourl&filter_value__one=plugin://&&musicdb://songs/?xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22artist%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Window(home).Property(EncodedArtistName)]%22%5D%7D%2C%7B%22field%22%3A%22album%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Window(home).Property(EncodedAlbumName)]%22%5D%7D%5D%7D%2C%22type%22%3A%22songs%22%7D</content>
</control>
I tried this, but it doesn't work:
code:
<control type="button" id="612">
<visible>String.IsEqual(ListItem.DBTYPE,album)</visible>
<font>IconMediumMD</font>
<width>65</width>
<texturenofocus/>
<include>ButtonInfoDialogsCommonValues</include>
<label></label>
<onclick>PlayMedia(plugin://script.skinvariables/?info=get_filter_dir&library=music&filter_key__one=songvideourl&filter_value__one=plugin://&&musicdb://songs/?xsp=%7B%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22artist%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Window(home).Property(EncodedArtistName)]%22%5D%7D%2C%7B%22field%22%3A%22album%22%2C%22operator%22%3A%22is%22%2C%22value%22%3A%5B%22$INFO[Window(home).Property(EncodedAlbumName)]%22%5D%7D%5D%7D%2C%22type%22%3A%22songs%22%7D,isdir)</onclick>
</control>
Thanks!