Skip to content

Commit

Permalink
Merge pull request #1 from sualfred/master
Browse files Browse the repository at this point in the history
Added window property for skinners if blacklisted addons are found
  • Loading branch information
b-jesch committed Oct 26, 2017
2 parents 2102f2a + 0f56dd3 commit 98c800d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import xbmcgui
from resources.lib.tools import *

__addonid__ = xbmcaddon.Addon().getAddonInfo('id')
Expand Down Expand Up @@ -41,8 +42,10 @@ def run_service():
writeLog('Repository \'%s\' found' %
(bl_repo.get('addonid', '')), xbmc.LOGNOTICE)
notify(__LS__(30011), __LS__(30012), icon=xbmcgui.NOTIFICATION_WARNING)
xbmcgui.Window(10000).setProperty('script.service.caretaker.found.blacklisted', 'true')
else:
writeLog('No potentially harmful repositories found', xbmc.LOGNOTICE)
xbmcgui.Window(10000).setProperty('script.service.caretaker.found.blacklisted', 'false')

else:
writeLog('Could not execute JSON query', xbmc.LOGFATAL)
Expand Down

0 comments on commit 98c800d

Please sign in to comment.