2019-02-26, 17:35
(2019-02-25, 23:10)latts9923 Wrote: @koldtoft
Have you tried the Extras Add-on from the KODI Repo? It will play local trailers and other content located in an Extras subfolder of your movie. I'm going to cover that Add-on in the upcoming how-to video.
@koldtoft
@latts9923
I am using the old trailer code:
Behavior:
Play local trailer if aviable
If no local trailer aviable then start automaticly a video via youtube addon
Code:
<item id="11">
<label>31701</label>
<onclick condition="!Skin.HasSetting(fullscreentrailer)">SetFocus(9930)</onclick>
<onclick condition="!Skin.HasSetting(fullscreentrailer)">PlayMedia($INFO[ListItem.Trailer],1)</onclick>
<onclick condition="Skin.HasSetting(fullscreentrailer)">SendClick(2003,11)</onclick>
<visible>!String.IsEmpty(ListItem.Trailer)</visible>
</item>
Current trailer code:
Behaviour:
Only start youtube addon with video suggestions to choose to watch
Code:
<item id="11">
<label>31701</label>
<onclick>RunScript(script.extendedinfo,info=youtubebrowser,id=$INFO[ListItem.Title] $INFO[ListItem.Year])</onclick>
<onclick condition="!System.HasAddon(plugin.video.youtube)">ActivateWindow(Videos,plugin://plugin.video.youtube)</onclick>
<visible>Container.Content(movies)</visible>
</item>
I tried to combine both codes to achieve that but i failed:
Behaviour:
Play local trailer if aviable
If no local trailer aviable then start youtube addon with video suggestions to choose to watch
Do you have an idea?