diff --git a/resources/site-packages/xbmctorrent/index.py b/resources/site-packages/xbmctorrent/index.py index a4c328c..8659ad0 100644 --- a/resources/site-packages/xbmctorrent/index.py +++ b/resources/site-packages/xbmctorrent/index.py @@ -13,6 +13,14 @@ @ensure_fanart @tracked(force=True) def index(): + import os + firstrun = os.path.join(plugin.addon.getAddonInfo("path"), ".firstrun") + if not os.path.exists(firstrun): + with open(firstrun, "w"): + # This doesn't get set properly + plugin.set_setting("encryption", "1") + plugin.open_settings() + for module in MODULES: yield { "label": module["name"],