diff --git a/plugin.video.external.library/libs/kodi_service.py b/plugin.video.external.library/libs/kodi_service.py
index f084861..7a728d8 100644
--- a/plugin.video.external.library/libs/kodi_service.py
+++ b/plugin.video.external.library/libs/kodi_service.py
@@ -186,6 +186,8 @@ def get_remote_kodi_url(with_credentials=False):
port = ADDON.getSetting('kodi_port')
login = ADDON.getSetting('kodi_login')
password = ADDON.getSetting('kodi_password')
+ use_https = ADDON.getSettingBool('use_https')
+ protocol = 'https' if use_https else 'http'
if not with_credentials or not login:
- return f'http://{host}:{port}'
- return f'http://{login}:{password}@{host}:{port}'
+ return f'{protocol}://{host}:{port}'
+ return f'{protocol}://{login}:{password}@{host}:{port}'
diff --git a/plugin.video.external.library/resources/language/resource.language.en_gb/strings.po b/plugin.video.external.library/resources/language/resource.language.en_gb/strings.po
index 50e9140..35520b5 100644
--- a/plugin.video.external.library/resources/language/resource.language.en_gb/strings.po
+++ b/plugin.video.external.library/resources/language/resource.language.en_gb/strings.po
@@ -122,3 +122,7 @@ msgstr ""
msgctxt "#32028"
msgid "Recently added music videos"
msgstr ""
+
+msgctxt "#32029"
+msgid "Use HTTPS"
+msgstr ""
diff --git a/plugin.video.external.library/resources/settings.xml b/plugin.video.external.library/resources/settings.xml
index fcf31c6..ea2d0a5 100644
--- a/plugin.video.external.library/resources/settings.xml
+++ b/plugin.video.external.library/resources/settings.xml
@@ -20,6 +20,11 @@
32002
+
+ 0
+ true
+
+
0