From 38107a477be5db1c50f1b7c4ff9dd3f545f52fc1 Mon Sep 17 00:00:00 2001 From: KRKeegan <-NOSPAM-kevin@krkeegan.com> Date: Fri, 2 May 2008 16:50:20 -0700 Subject: [PATCH] Don't show CopyProtected shows in NPL --- plugins/admin/admin.py | 2 ++ plugins/admin/templates/npl.tmpl | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/admin/admin.py b/plugins/admin/admin.py index aae89a9..1a920b2 100644 --- a/plugins/admin/admin.py +++ b/plugins/admin/admin.py @@ -231,6 +231,8 @@ class Admin(Plugin): entry = {} entry['Title'] = item.getElementsByTagName("Title")[0].firstChild.data entry['ContentType'] = item.getElementsByTagName("ContentType")[0].firstChild.data + if (len(item.getElementsByTagName("CopyProtected")) >= 1): + entry['CopyProtected'] = item.getElementsByTagName("CopyProtected")[0].firstChild.data if (len(item.getElementsByTagName("UniqueId")) >= 1): entry['UniqueId'] = item.getElementsByTagName("UniqueId")[0].firstChild.data if entry['ContentType'] == 'x-tivo-container/folder': diff --git a/plugins/admin/templates/npl.tmpl b/plugins/admin/templates/npl.tmpl index 2b45568..5900fca 100644 --- a/plugins/admin/templates/npl.tmpl +++ b/plugins/admin/templates/npl.tmpl @@ -85,7 +85,9 @@ $row['Duration'] $row['CaptureDate'] - #if 'Url' in $row + #if 'CopyProtected' in $row and $row['CopyProtected'] == 'Yes' + CopyProtected + #else if 'Url' in $row #if $unquote($row['Url']) in $status #set $this_status = $status[$unquote($row['Url'])] -- 2.11.4.GIT