From 15c4da46a985ebe5d6043bf362c9312a5ee109da Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 14 Apr 2019 14:49:44 +0200 Subject: [PATCH] Reenable setting: recently added: don't show watched movies --- resources/lib/library_sync/nodes.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/lib/library_sync/nodes.py b/resources/lib/library_sync/nodes.py index c90992f3..a30ac047 100644 --- a/resources/lib/library_sync/nodes.py +++ b/resources/lib/library_sync/nodes.py @@ -252,10 +252,14 @@ def node_recent(section, node_name): rule = etree.SubElement(xml, 'rule', attrib={'field': 'tag', 'operator': 'is'}) etree.SubElement(rule, 'value').text = section.name - if (section.section_type == v.PLEX_TYPE_SHOW and - utils.settings('TVShowWatched') == 'false'): + if ((section.section_type == v.PLEX_TYPE_SHOW and + utils.settings('TVShowWatched') == 'false') or + (section.section_type == v.PLEX_TYPE_MOVIE and + utils.settings('MovieShowWatched') == 'false')): # Adds an additional rule if user deactivated the PKC setting # "Recently Added: Also show already watched episodes" + # or + # "Recently Added: Also show already watched episodes" rule = etree.SubElement(xml, 'rule', attrib={'field': 'playcount', 'operator': 'is'}) etree.SubElement(rule, 'value').text = '0'