Hallo liebe Community,
mit den folgenden drei Dateien kann man ein theme für Filme und TV-Serien abspielen.
Den Code habe ich hier gefunden. Er soll in allen skins funktionieren.
customStartSoundtrack.xml
XML
<?xml version="1.0" encoding="utf-8"?>
<window type="dialog" id="1355">
<onload>Stop</onload>
<onload condition="String.IsEmpty(Window(home).Property(PlayingOST)) + !String.Contains(ListItem.Path,http)">PlayMedia($ESCINFO[ListItem.Path,,theme.mp3])</onload>
<onload>SetProperty(OST,$INFO[ListItem.Path],home)</onload>
<onload>SetProperty(PlayingOST,True,home)</onload>
<visible>System.IdleTime(2) + [!String.IsEqual(ListItem.Path,Window(home).Property(OST)) | !Player.Playing]</visible>
<visible>!ListItem.IsCollection + !String.Contains(ListItem.Path,thumb:) + !String.Contains(ListItem.Path,image:) + !String.Contains(ListItem.Path,plugin) + !String.Contains(ListItem.Path,videodb:)</visible>
<visible>Container.Content(movies) | [Container.Content(tvshows) + !Player.Playing] | [Container.Content(seasons) + !Player.Playing]</visible>
<visible>!Window.IsActive(movieinformation)</visible>
<visible>Window.IsActive(videos)</visible>
<controls></controls>
</window>
Alles anzeigen
customStopSoundtrack.xml
XML
<?xml version="1.0" encoding="utf-8"?>
<window type="dialog" id="1255">
<onload condition="Player.Playing">Pause</onload>
<onload>ClearProperty(PlayingOST,Home)</onload>
<visible>!String.IsEqual(ListItem.Path,Window(home).Property(OST))</visible>
<visible>Container.Content(movies) | Container.Content(tvshows)</visible>
<visible>!Window.IsActive(movieinformation)</visible>
<controls></controls>
</window>
customRidSoundtrack.xml
XML
<?xml version="1.0" encoding="utf-8"?>
<window type="dialog" id="1305">
<onload>Stop</onload>
<onload>ClearProperty(PlayingOST,Home)</onload>
<visible>String.Contains(Player.Filenameandpath,theme.mp3) + [!Window.IsActive(videos) | String.IsEmpty(ListItem.Path) | ListItem.IsCollection]</visible>
<controls></controls>
</window>
Jetzt wäre es noch schön wenn das theme auch für ein Movie Set startet ohne das man es öffnet.
Ein user hat es dort im Beitrag #48 (page 4) teilweise geschafft aber ich scheitere daran.
Meine customStartSoundtrack.xml
XML
<?xml version="1.0" encoding="utf-8"?>
<window type="dialog" id="1355">
<onload>Stop</onload>
<onload condition="String.IsEmpty(Window(home).Property(PlayingOST)) + !String.Contains(ListItem.IsCollection(Avatar) + !String.Contains(ListItem.Path,http)">PlayMedia($ESCINFO[ListItem.Path,,theme.mp3])</onload>
<onload condition="String.IsEmpty(Window(home).Property(PlayingOST)) + String.Contains(ListItem.IsCollection(Avatar) + !String.Contains(ListItem.Path,http)">PlayMedia(special://userdata/profiles/Kodi/Meine_soundtracks/Avatar.mp3'])</onload>
<onload>SetProperty(OST,$INFO[ListItem.Path],home)</onload>
<onload>SetProperty(PlayingOST,True,home)</onload>
<visible>System.IdleTime(2) + [!String.IsEqual(ListItem.Path,Window(home).Property(OST)) | !Player.Playing]</visible>
<visible>!ListItem.IsCollection + !String.Contains(ListItem.Path,thumb:) + !String.Contains(ListItem.Path,image:) + !String.Contains(ListItem.Path,plugin) + !String.Contains(ListItem.Path,videodb:)</visible>
<visible>Container.Content(movies) | [Container.Content(tvshows) + !Player.Playing] | [Container.Content(seasons) + !Player.Playing]</visible>
<visible>!Window.IsActive(movieinformation)</visible>
<visible>Window.IsActive(videos)</visible>
<controls></controls>
</window>
Alles anzeigen
Die nfo Datei eines Films aus dem Movie Set sieht so aus:
Avatar - Aufbruch nach Pandora (2009).3d.sbs.nfo
Code
...
<title>Avatar - Aufbruch nach Pandora</title>
...
<set>
<name>Avatar Filmreihe</name>
<overview>Avatar (auch bekannt als James Cameron's Avatar) ... usw.</overview>
</set>
<sorttitle>Avatar Filmreihe 2009</sorttitle>
...
Sieht jemand den Fehler?
Note: Bin kein coder, alles was ich mache ist nach dem try and error Prinzip.
Gruß