Skip to content

Commit

Permalink
Attempt to fix reloading settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dagwieers committed Nov 15, 2019
1 parent 2a82f8f commit f2b90b3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/lib/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ def onSettingsChanged(self): # pylint: disable=invalid-name
''' Handler for changes to settings '''

log(1, 'Settings changed')

# Reinitialize Addon()
from xbmcaddon import Addon
import kodiutils
kodiutils.ADDON = Addon()

TokenResolver().refresh_login()

invalidate_caches('continue-*.json', 'favorites.json', 'my-offline-*.json', 'my-recent-*.json', 'resume_points.json', 'watchlater-*.json')
Expand Down

0 comments on commit f2b90b3

Please sign in to comment.