New setting: don't show already watched episodes

This commit is contained in:
tomkat83 2016-05-15 17:24:44 +02:00
parent 9786aab050
commit 422fc0dfc9
4 changed files with 9 additions and 0 deletions

View file

@ -408,6 +408,7 @@
<string id="39061">Would you like to download additional artwork from FanArtTV? Sync will be slower!</string>
<string id="39062">Sync when screensaver is deactivated</string>
<string id="39063">Force Transcode Hi10P</string>
<string id="39064">Recently Added: Also show already watched episodes</string>
<!-- Plex Entrypoint.py -->
<string id="39200">Log-out Plex Home User </string>

View file

@ -347,6 +347,7 @@
<string id="39061">Zusätzliche Bilder von FanArtTV herunterladen? Die Synchronisierung wird länger dauern!</string>
<string id="39062">Sync wenn Bildschirmschoner deaktiviert wird</string>
<string id="39063">Hi10p Codec Transkodierung erzwingen</string>
<string id="39064">"Zuletzt hinzugefügt": gesehene Folgen anzeigen</string>
<!-- Plex Entrypoint.py -->
<string id="39200">Plex Home Benutzer abmelden: </string>

View file

@ -1269,6 +1269,12 @@ def getRecentEpisodes(viewid, mediatype, tagname, limit):
"limits": {"end": limit}
}
}
if utils.settings('ShowWatched') == 'false':
query['params']['filter'] = {
'operator': "lessthan",
'field': "playcount",
'value': "1"
}
result = xbmc.executeJSONRPC(json.dumps(query))
result = json.loads(result)
try:

View file

@ -135,6 +135,7 @@
<setting id="OnDeckTVextended" type="bool" label="39058" default="true" /><!-- Extend Plex TV Series "On Deck" view to all shows -->
<setting id="OnDeckTvAppendShow" type="bool" label="39047" default="false" /><!--On Deck view: Append show title to episode-->
<setting id="OnDeckTvAppendSeason" type="bool" label="39048" default="false" /><!--On Deck view: Append season number to episode-->
<setting id="ShowWatched" type="bool" label="39064" default="true" /><!--Recently Added: Also show already watched episodes-->
<setting id="RecentTvAppendShow" type="bool" label="39059" default="false" /><!--Recently added: Append show title to episode-->
<setting id="RecentTvAppendSeason" type="bool" label="39060" default="false" /><!--Recently Added: Append season- and episode-number SxxExx-->
</category>