From 460b0deb510719804b18ad491e64e56d9afb57ff Mon Sep 17 00:00:00 2001 From: KRKeegan <-NOSPAM-kevin@krkeegan.com> Date: Mon, 25 Feb 2008 16:34:54 -0800 Subject: [PATCH] Update video.py to respect a reset of config.py Getting rid of variables that are set on load in favor of calls to config.py. --- plugins/video/video.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/plugins/video/video.py b/plugins/video/video.py index 842b8e5..844611e 100644 --- a/plugins/video/video.py +++ b/plugins/video/video.py @@ -19,11 +19,8 @@ try: except: extensions = None -debug = config.getDebug() -hack83 = config.getHack83() - def debug_write(data): - if debug: + if config.getDebug(): debug_out = [] debug_out.append('Video.py - ') for x in data: @@ -32,9 +29,6 @@ def debug_write(data): fdebug.write(' '.join(debug_out)) fdebug.close() -if hack83: - debug_write(['Hack83 is enabled.\n']) - class Video(Plugin): CONTENT_TYPE = 'x-container/tivo-videos' @@ -341,8 +335,7 @@ class Video(Plugin): # If you are running 8.3 software you want to enable hack83 # in the config file - - if hack83: + if config.getHack83(): print '=' * 73 query, hackPath = self.hack(handler, query, subcname) hackPath = '/'.join(hackPath) -- 2.11.4.GIT