From 40dc6e08efca39a0ad0c4f9a99c5f3df2d204336 Mon Sep 17 00:00:00 2001
From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
Date: Sat, 12 Feb 2022 17:59:14 -0800
Subject: [PATCH] Fix first_run_complete config flag
---
data/interfaces/default/welcome.html | 1 -
plexpy/config.py | 1 -
plexpy/webserve.py | 4 ++++
3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/data/interfaces/default/welcome.html b/data/interfaces/default/welcome.html
index a6a6d04f..ed44eac3 100644
--- a/data/interfaces/default/welcome.html
+++ b/data/interfaces/default/welcome.html
@@ -244,7 +244,6 @@
-
diff --git a/plexpy/config.py b/plexpy/config.py
index 7c8f95c4..c296d628 100644
--- a/plexpy/config.py
+++ b/plexpy/config.py
@@ -307,7 +307,6 @@ CHECKED_SETTINGS = [
'CACHE_IMAGES',
'CHECK_GITHUB',
'ENABLE_HTTPS',
- 'FIRST_RUN_COMPLETE',
'GET_FILE_SIZES',
'GROUP_HISTORY_TABLES',
'HISTORY_TABLE_ACTIVITY',
diff --git a/plexpy/webserve.py b/plexpy/webserve.py
index dd6e66a4..24c47361 100644
--- a/plexpy/webserve.py
+++ b/plexpy/webserve.py
@@ -3261,6 +3261,10 @@ class WebInterface(object):
all_settings = config.SETTINGS + config.CHECKED_SETTINGS
kwargs = {k: v for k, v in kwargs.items() if k.upper() in all_settings}
+
+ if first_run:
+ kwargs['first_run_complete'] = 1
+
plexpy.CONFIG.process_kwargs(kwargs)
# Write the config