import xbmc, os
guisettingsFile=xbmc.translatePath("special://profile/guisettings.xml")
fh=open(guisettingsFile, 'r')
content= fh.read()
fh.close()
if content.find("false")>=0:
xbmc.executehttpapi("SetGUISetting(1;videoplayer.adjustrefreshrate;true)")
xbmc.executebuiltin('XBMC.Notification(Info:,Bildwiederholfrequenz anpassen: AN,5000)')
elif content.find("true")>=0:
xbmc.executehttpapi("SetGUISetting(1;videoplayer.adjustrefreshrate;false)")
xbmc.executebuiltin('XBMC.Notification(Info:,Bildwiederholfrequenz anpassen: AUS,5000)')
xbmc.executebuiltin("ReloadSkin()")