diff --git a/couchpotato/core/_base/_core/main.py b/couchpotato/core/_base/_core/main.py index 81ccac2..a496df6 100644 --- a/couchpotato/core/_base/_core/main.py +++ b/couchpotato/core/_base/_core/main.py @@ -47,7 +47,6 @@ class Core(Plugin): addEvent('setting.save.core.password', self.md5Password) addEvent('setting.save.core.api_key', self.checkApikey) - self.removeRestartFile() def md5Password(self, value): return md5(value) if value else '' @@ -119,9 +118,6 @@ class Core(Plugin): time.sleep(1) - if restart: - self.createFile(self.restartFilePath(), 'This is the most suckiest way to register if CP is restarted. Ever...') - log.debug('Save to shutdown/restart') try: @@ -133,15 +129,6 @@ class Core(Plugin): fireEvent('app.after_shutdown', restart = restart) - def removeRestartFile(self): - try: - os.remove(self.restartFilePath()) - except: - pass - - def restartFilePath(self): - return os.path.join(Env.get('data_dir'), 'restart') - def launchBrowser(self): if Env.setting('launch_browser'):