2019-02-27, 21:35
(2019-02-27, 03:46)latts9923 Wrote: @chrissixThat's exactly what the code is after I search.
I was able to add a local trailer by adding "-trailer" to the end of the file name and it was added to the database. I also removed one of the YouTube trailer plugin links from a movie in the database and ended up getting the extendedinfo script to search YouTube. Try this...
I'll take another look at the "AB FANART".Code:<item id="11">
<label>31701</label>
<onclick condition="!String.IsEmpty(ListItem.Trailer) + !Skin.HasSetting(fullscreentrailer)">SetFocus(9930)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Trailer) + !Skin.HasSetting(fullscreentrailer)">PlayMedia($INFO[ListItem.Trailer],1)</onclick>
<onclick condition="!String.IsEmpty(ListItem.Trailer) + Skin.HasSetting(fullscreentrailer)">SendClick(2003,11)</onclick>
<onclick condition="String.IsEmpty(ListItem.Trailer)">RunScript(script.extendedinfo,info=youtubebrowser,id=$INFO[ListItem.Title] $INFO[ListItem.Year])</onclick>
<onclick condition="String.IsEmpty(ListItem.Trailer) + !System.HasAddon(plugin.video.youtube)">ActivateWindow(Videos,plugin://plugin.video.youtube)</onclick>
<visible>Container.Content(movies)</visible>
</item>
One thing I have overlooked and indeed its the trailer url.
I scrape with MediaCompanion, and wherever there is no local trailer, a trailer url is deposited instead.
That means, in kodi ListItem.Trailer is not only valid for the Local Trailer, but also for the Trailer url as fallback.
Two problems:
- How do I get rid of the Trailer url from the kodi db?
- Although I can scrape the trailer url in my Media Manager Media Companion, but I can not delete it on the same way out again. Maybe @vbat99 can do something. I have to get rid of them. The job is done by the Youtube plugin.
The code would be perfect if the trailers were url. as fallback at ListItem.Trailer not in the way.
Think there is no workaround to skip the trailer url fallback.