From b589c578a0bd31234d403f5e7831487be8eff418 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 30 Dec 2007 17:51:02 -0500 Subject: [PATCH] Spelling --- httpserver.py | 8 ++++---- plugins/video/transcode.py | 6 +++--- plugins/video/video.py | 2 +- templates/{unsuported.tmpl => unsupported.tmpl} | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) rename templates/{unsuported.tmpl => unsupported.tmpl} (82%) diff --git a/httpserver.py b/httpserver.py index 8c8f3fa..e5b757f 100644 --- a/httpserver.py +++ b/httpserver.py @@ -65,10 +65,10 @@ class TivoHTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler): method = getattr(plugin, command) method(self, query) else: - self.unsuported(query) + self.unsupported(query) break else: - self.unsuported(query) + self.unsupported(query) def root_container(self): t = Template(file=os.path.join(SCRIPTDIR, 'templates', 'root_container.tmpl')) @@ -87,11 +87,11 @@ class TivoHTTPHandler(BaseHTTPServer.BaseHTTPRequestHandler): self.wfile.write(t) self.end_headers() - def unsuported(self, query): + def unsupported(self, query): self.send_response(404) self.send_header('Content-type', 'text/html') self.end_headers() - t = Template(file=os.path.join(SCRIPTDIR,'templates','unsuported.tmpl')) + t = Template(file=os.path.join(SCRIPTDIR,'templates','unsupported.tmpl')) t.query = query self.wfile.write(t) diff --git a/plugins/video/transcode.py b/plugins/video/transcode.py index 692a8b8..20ade84 100644 --- a/plugins/video/transcode.py +++ b/plugins/video/transcode.py @@ -208,7 +208,7 @@ def select_aspect(inFile, tsn = ''): return settings def tivo_compatable(inFile, tsn = ''): - suportedModes = [[720, 480], [704, 480], [544, 480], [480, 480], [352, 480]] + supportedModes = [[720, 480], [704, 480], [544, 480], [480, 480], [352, 480]] type, width, height, fps, millisecs = video_info(inFile) #print type, width, height, fps, millisecs @@ -230,7 +230,7 @@ def tivo_compatable(inFile, tsn = ''): debug_write(['tivo_compatible: ', inFile, ' is not correct fps it is ', fps, '\n']) return False - for mode in suportedModes: + for mode in supportedModes: if (mode[0], mode[1]) == (width, height): #print 'Is TiVo!' debug_write(['tivo_compatible: ', inFile, ' has correct width of ', width, ' and height of ', height, '\n']) @@ -321,7 +321,7 @@ def video_info(inFile): debug_write(['video_info: Codec=', codec, ' width=', width, ' height=', height, ' fps=', fps, ' millisecs=', millisecs, '\n']) return codec, width, height, fps, millisecs -def suported_format(inFile): +def supported_format(inFile): if video_info(inFile)[0]: return True else: diff --git a/plugins/video/video.py b/plugins/video/video.py index 2759835..e67cfc9 100644 --- a/plugins/video/video.py +++ b/plugins/video/video.py @@ -136,7 +136,7 @@ class Video(Plugin): full_path = file if os.path.isdir(full_path): return True - return transcode.suported_format(full_path) + return transcode.supported_format(full_path) files, total, start = self.get_files(handler, query, video_file_filter) diff --git a/templates/unsuported.tmpl b/templates/unsupported.tmpl similarity index 82% rename from templates/unsuported.tmpl rename to templates/unsupported.tmpl index aaed613..1d65704 100644 --- a/templates/unsuported.tmpl +++ b/templates/unsupported.tmpl @@ -1,6 +1,6 @@ -

Unsuported Command

+

Unsupported Command

Query: