From b861df7395a948b0c3f57248957ac810e1db29f4 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 14 Feb 2008 15:59:25 -0500 Subject: [PATCH] Skip shortcutting validity check if precache is on. --- plugins/video/video.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/video/video.py b/plugins/video/video.py index 3f5d725..6d3dbca 100644 --- a/plugins/video/video.py +++ b/plugins/video/video.py @@ -161,6 +161,9 @@ class Video(Plugin): handler.end_headers() return + container = handler.server.containers[cname] + precache = container.get('precache', 'False').lower() == 'true' + files, total, start = self.get_files(handler, query, self.video_file_filter) @@ -176,7 +179,7 @@ class Video(Plugin): if video['is_dir']: video['small_path'] = subcname + '/' + video['name'] else: - if len(files) == 1 or file in transcode.info_cache: + if precache or len(files) == 1 or file in transcode.info_cache: video['valid'] = transcode.supported_format(file) if video['valid']: video.update(self.__metadata_full(file, tsn)) -- 2.11.4.GIT