Release TvTunes alternative for playing soundtracks when browsing
#3
(2018-04-15, 11:45)Karellen Wrote: Hello @manfeed

I created these two xml files and added them to Transparency! and restarted Kodi. They work great!!

I imagine you have no control over this, but do you have any idea why it will play mp3 themes, but not flac themes?

You have to change the onload condition if your theme files are flac:
Code:
<onload>PlayMedia($INFO[ListItem.Path,,theme.mp3])</onload>

Change to
Code:
<onload>PlayMedia($INFO[ListItem.Path,,theme.flac])</onload>

Unfortunately, there is no way to check whether a local file exits in the skinning engine, so you are stuck with choosing one particular file type.
I haven't tested, but you might be able to get away with stacking them together. Off the top of my head, I'm not sure if PlayMedia will stop playback even if the file doesn't exist.
e.g. You could try
Code:
<onload>PlayMedia($INFO[ListItem.Path,,theme.mp3])</onload>
<onload>PlayMedia($INFO[ListItem.Path,,theme.flac])</onload>
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply


Messages In This Thread
RE: TvTunes alternative for playing soundtracks when browsing - by jurialmunkey - 2018-04-15, 13:37
Logout Mark Read Team Forum Stats Members Help
TvTunes alternative for playing soundtracks when browsing2