From 47f1c8eaaf177a473d70294cb4091afba9d7b71f Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sat, 14 Feb 2015 02:28:24 +0000 Subject: [PATCH] Add support for multiple server hosts to Plex server notifier. Add support for multiple server hosts to the updated Plex server notifier. Change Plex Media Server settings section for multi server(s) and improve the layout in the config/notifications page. Add logic to Plex notifier to update a single server where its TV section path matches the downloaded show. All server libraries are updated if no single server has a download path match. Change the ui notifications to show the Plex Media Server(s) actioned for library updating. Fix issue where PMS text wasn't initialised on the config/notifications page and added info about Plex clients. Add ability to test Plex Server(s) on config/notifications page. --- CHANGES.md | 7 + .../default/config_notifications.tmpl | 218 ++++++++++-------- gui/slick/js/configNotifications.js | 43 +++- sickbeard/notifiers/plex.py | 170 ++++++++------ sickbeard/postProcessor.py | 2 +- sickbeard/webserve.py | 43 ++-- 6 files changed, 289 insertions(+), 194 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b62178fd..6869e671 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -40,6 +40,13 @@ * Add sound selection for boxcar2 notifier * Change boxcar2 notifier to use updated api scheme * Update the Plex notifier from a port at midgetspy/sickbeard +* Add support for multiple server hosts to the updated Plex server notifier +* Change Plex Media Server settings section for multi server(s) and improve the layout in the config/notifications page +* Add logic to Plex notifier to update a single server where its TV section path matches the downloaded show. All server + libraries are updated if no single server has a download path match. +* Change the ui notifications to show the Plex Media Server(s) actioned for library updating +* Fix issue where PMS text wasn't initialised on the config/notifications page and added info about Plex clients +* Add ability to test Plex Server(s) on config/notifications page [develop changelog] * Change uT params from unicode to str.format as magnet URLs worked but sending files in POST bodies failed diff --git a/gui/slick/interfaces/default/config_notifications.tmpl b/gui/slick/interfaces/default/config_notifications.tmpl index 0802f65f..7b8fff43 100644 --- a/gui/slick/interfaces/default/config_notifications.tmpl +++ b/gui/slick/interfaces/default/config_notifications.tmpl @@ -1,4 +1,5 @@ #import sickbeard +#import re #from sickbeard.helpers import anon_url #set global $title = 'Config - Notifications' @@ -30,7 +31,7 @@
- +

XBMC

@@ -110,7 +111,7 @@

only send library updates to the first active host ?

-
+
- +
@@ -160,103 +161,120 @@

Plex Media Server

Plex organizes all of your personal media, wherever you keep it, so you can enjoy it on any device

-

For sending notifications to Plex Home Theater (PHT) clients, use the XBMC notifier with port 3005.

+

To send notifications to Plex Home Theater (PHT) clients, use the XBMC notifier with port 3005.

-
- +
+
+ +
+
+ +
-
- + +
+
+ +
+
+
+ +
+ +
+
Click below to test Plex server(s)
+ + +
 
+
+
-
- -
-
- -
-
- - -
-
- - - -
-
- - -
-
- - -
-
Click below to test.
- - + +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
Click below to test Plex client(s)
+ + +

Note: some Plex clients do not support notifications e.g. Plexapp for Samsung TVs

+
+
@@ -365,9 +383,9 @@ + - +
- +
@@ -430,7 +448,7 @@ @@ -446,8 +464,8 @@
- - + +
@@ -563,7 +581,7 @@
- +
@@ -576,7 +594,7 @@ @@ -587,7 +605,7 @@ @@ -1172,7 +1190,7 @@
- +
@@ -1350,7 +1368,7 @@   method in which to download episodes for new show's. -
+
-
-
+
+