From 69e92ef68e1f79bb000f3511d93f121e870e9e32 Mon Sep 17 00:00:00 2001 From: Justin Emter Date: Thu, 17 Aug 2017 12:12:59 -0700 Subject: [PATCH] Added documentation to XML / defaults to strict-time / time-shift. Also removed overlap-max for now until it's fully implemented. --- PseudoChannel.py | 4 +- pseudo_config.py | 1 - pseudo_schedule.xml | 217 +++++++++++++++++++++++++++++++++----------- 3 files changed, 164 insertions(+), 58 deletions(-) diff --git a/PseudoChannel.py b/PseudoChannel.py index 4a863b5..05757f7 100644 --- a/PseudoChannel.py +++ b/PseudoChannel.py @@ -378,9 +378,9 @@ class PseudoChannel(): day_of_week = child.tag - strict_time = time.attrib['strict-time'] if 'strict-time' in time.attrib else '' + strict_time = time.attrib['strict-time'] if 'strict-time' in time.attrib else 'false' - time_shift = time.attrib['time-shift'] if 'time-shift' in time.attrib else '' + time_shift = time.attrib['time-shift'] if 'time-shift' in time.attrib else '1' overlap_max = time.attrib['overlap-max'] if 'overlap-max' in time.attrib else '' diff --git a/pseudo_config.py b/pseudo_config.py index 4fc2be0..797d8ce 100644 --- a/pseudo_config.py +++ b/pseudo_config.py @@ -41,7 +41,6 @@ plexClients = ['RasPlex'] plexLibraries = { "TV Shows" : ["TV Shows"], "Movies" : ["Movies"], - "Music" : ["Music"], "Commercials" : ["Commercials"], } diff --git a/pseudo_schedule.xml b/pseudo_schedule.xml index 5d413f0..bac2e98 100644 --- a/pseudo_schedule.xml +++ b/pseudo_schedule.xml @@ -1,10 +1,117 @@ + + - - - - + + + + @@ -15,85 +122,85 @@ - - - - + + + + - - + + - + - - - - - + + + + + - + - - + + - - + + - + - - + + - + - - + + - - + + - - - - + + + + - - + + - + - + - - + + - - + + - - + + - - + + - - + + - + - - + + - - + + - + - - + +