OS X Fanart disappearing / Cannot quick restart
#1
Hi, I am having an issue with fanart in my movie library where it keeps disappearing after using ExtendedInfo.

The only way I have found to fix this is to manually close Kodi and restart it, which can become quite tedious after a while. At first I thought I could workaround this by mapping a Kodi restart to one of my keys, but unfortunately it appears the 'RestartApp' function is not currently supported by OS X. Does anyone know of a way to fix this problem or alternatively a way to force Kodi into a quick restart on OS X?

Log file showing instance of fanart 'disappearing': http://xbmclogs.com/pl6yp0dsu

Thanks, djg91.
Reply
#2
Found a nice little workaround if anyone else stumbles across the same problem.

First I created an applescript with the following:
Quote:set myProcesses to {"Kodi"}

on delay duration
set endTime to (current date) + duration
repeat while (current date) is less than endTime
tell AppleScript to delay endTime - (current date)
end repeat
end delay

tell application "System Events"
repeat with myProcess in myProcesses
set theID to (unix id of processes whose name is myProcess)
try
do shell script "kill -9 " & theID
end try
end repeat
end tell

delay 1
tell application "System Events"
tell application "Kodi" to activate
end tell

Next I installed 'Advanced Launcher' from SuperRepo created a new launcher as follows:
Quote:<launcher>
<id>622e3ae5b7ce7780c5dd11487fa6893f</id>
<name>RestartKodi</name>
<category>default</category>
<application>/usr/bin/osascript</application>
<args>filepath/RestartKodi.scpt</args>
<rompath></rompath>
<thumbpath></thumbpath>
<fanartpath></fanartpath>
<trailerpath></trailerpath>
<custompath></custompath>
<romext></romext>
<platform>Macintosh</platform>
<thumb></thumb>
<fanart></fanart>
<genre></genre>
<release></release>
<publisher></publisher>
<launcherplot></launcherplot>
<finished>false</finished>
<minimize>false</minimize>
<lnk></lnk>
<roms></roms>

Finally, I added this 'RestartKodi' laucher to my favourites so that it could be accessed as a menu item.

Upon selecting the menu item, Kodi will quit and re-open with all artwork restored.
Reply

Logout Mark Read Team Forum Stats Members Help
Fanart disappearing / Cannot quick restart0