diff options
author | morpheus65535 <[email protected]> | 2018-07-23 18:06:10 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2018-07-23 18:06:10 -0400 |
commit | 7b7c02c9c4e20d0f92ea8c891d4bad252b748d27 (patch) | |
tree | 50bad920b1e2d84bf21369ecd6eababaded21d09 /bazarr.py | |
parent | 7af17c9703aad217d96bf14c006b9f53bdd52fdb (diff) | |
download | bazarr-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.py | 49 |
1 files changed, 48 insertions, 1 deletions
@@ -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()
|