Reenable setting: recently added: don't show watched movies
This commit is contained in:
parent
b22ae7aee4
commit
15c4da46a9
1 changed files with 6 additions and 2 deletions
|
@ -252,10 +252,14 @@ def node_recent(section, node_name):
|
||||||
rule = etree.SubElement(xml, 'rule', attrib={'field': 'tag',
|
rule = etree.SubElement(xml, 'rule', attrib={'field': 'tag',
|
||||||
'operator': 'is'})
|
'operator': 'is'})
|
||||||
etree.SubElement(rule, 'value').text = section.name
|
etree.SubElement(rule, 'value').text = section.name
|
||||||
if (section.section_type == v.PLEX_TYPE_SHOW and
|
if ((section.section_type == v.PLEX_TYPE_SHOW and
|
||||||
utils.settings('TVShowWatched') == 'false'):
|
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
|
# Adds an additional rule if user deactivated the PKC setting
|
||||||
# "Recently Added: Also show already watched episodes"
|
# "Recently Added: Also show already watched episodes"
|
||||||
|
# or
|
||||||
|
# "Recently Added: Also show already watched episodes"
|
||||||
rule = etree.SubElement(xml, 'rule', attrib={'field': 'playcount',
|
rule = etree.SubElement(xml, 'rule', attrib={'field': 'playcount',
|
||||||
'operator': 'is'})
|
'operator': 'is'})
|
||||||
etree.SubElement(rule, 'value').text = '0'
|
etree.SubElement(rule, 'value').text = '0'
|
||||||
|
|
Loading…
Reference in a new issue