summaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2018-07-23 18:06:10 -0400
committermorpheus65535 <[email protected]>2018-07-23 18:06:10 -0400
commit7b7c02c9c4e20d0f92ea8c891d4bad252b748d27 (patch)
tree50bad920b1e2d84bf21369ecd6eababaded21d09 /bazarr.py
parent7af17c9703aad217d96bf14c006b9f53bdd52fdb (diff)
downloadbazarr-7b7c02c9c4e20d0f92ea8c891d4bad252b748d27.tar.gz
bazarr-7b7c02c9c4e20d0f92ea8c891d4bad252b748d27.zip
Updating notification system to support new services from apprise 0.0.9
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py49
1 files changed, 48 insertions, 1 deletions
diff --git a/bazarr.py b/bazarr.py
index c764993a0..4e25d056c 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -1,4 +1,4 @@
-bazarr_version = '0.5.5'
+bazarr_version = '0.5.6'
import gc
gc.enable()
@@ -934,6 +934,53 @@ def save_settings():
settings_notifier_XBMC_url = request.forms.get('settings_notifier_XBMC_url')
c.execute("UPDATE table_settings_notifier SET enabled = ?, url = ? WHERE name = 'XBMC'", (settings_notifier_XBMC_enabled, settings_notifier_XBMC_url))
+ settings_notifier_Discord_enabled = request.forms.get('settings_notifier_Discord_enabled')
+ if settings_notifier_Discord_enabled == 'on':
+ settings_notifier_Discord_enabled = 1
+ else:
+ settings_notifier_Discord_enabled = 0
+ settings_notifier_Discord_url = request.forms.get('settings_notifier_Discord_url')
+ c.execute("UPDATE table_settings_notifier SET enabled = ?, url = ? WHERE name = 'Discord'", (settings_notifier_Discord_enabled, settings_notifier_Discord_url))
+
+ settings_notifier_E_Mail_enabled = request.forms.get('settings_notifier_E-Mail_enabled')
+ if settings_notifier_E_Mail_enabled == 'on':
+ settings_notifier_E_Mail_enabled = 1
+ else:
+ settings_notifier_E_Mail_enabled = 0
+ settings_notifier_E_Mail_url = request.forms.get('settings_notifier_E-Mail_url')
+ c.execute("UPDATE table_settings_notifier SET enabled = ?, url = ? WHERE name = 'E-Mail'", (settings_notifier_E_Mail_enabled, settings_notifier_E_Mail_url))
+
+ settings_notifier_Emby_enabled = request.forms.get('settings_notifier_Emby_enabled')
+ if settings_notifier_Emby_enabled == 'on':
+ settings_notifier_Emby_enabled = 1
+ else:
+ settings_notifier_Emby_enabled = 0
+ settings_notifier_Emby_url = request.forms.get('settings_notifier_Emby_url')
+ c.execute("UPDATE table_settings_notifier SET enabled = ?, url = ? WHERE name = 'Emby'", (settings_notifier_Emby_enabled, settings_notifier_Emby_url))
+
+ settings_notifier_IFTTT_enabled = request.forms.get('settings_notifier_IFTTT_enabled')
+ if settings_notifier_IFTTT_enabled == 'on':
+ settings_notifier_IFTTT_enabled = 1
+ else:
+ settings_notifier_IFTTT_enabled = 0
+ settings_notifier_IFTTT_url = request.forms.get('settings_notifier_IFTTT_url')
+ c.execute("UPDATE table_settings_notifier SET enabled = ?, url = ? WHERE name = 'IFTTT'", (settings_notifier_IFTTT_enabled, settings_notifier_IFTTT_url))
+
+ settings_notifier_Stride_enabled = request.forms.get('settings_notifier_Stride_enabled')
+ if settings_notifier_Stride_enabled == 'on':
+ settings_notifier_Stride_enabled = 1
+ else:
+ settings_notifier_Stride_enabled = 0
+ settings_notifier_Stride_url = request.forms.get('settings_notifier_Stride_url')
+ c.execute("UPDATE table_settings_notifier SET enabled = ?, url = ? WHERE name = 'Stride'", (settings_notifier_Stride_enabled, settings_notifier_Stride_url))
+
+ settings_notifier_Windows_enabled = request.forms.get('settings_notifier_Windows_enabled')
+ if settings_notifier_Windows_enabled == 'on':
+ settings_notifier_Windows_enabled = 1
+ else:
+ settings_notifier_Windows_enabled = 0
+ settings_notifier_Windows_url = request.forms.get('settings_notifier_Windows_url')
+ c.execute("UPDATE table_settings_notifier SET enabled = ?, url = ? WHERE name = 'Windows'", (settings_notifier_Windows_enabled, settings_notifier_Windows_url))
conn.commit()
c.close()