From bcf4afb03897b2088278034133b2737cddbfc000 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Thu, 14 Feb 2008 12:08:45 -0500 Subject: [PATCH] If the file is already in transcode's info_cache (i.e., it has already been ffmpeg'd), then do the full test (which should incur no further penalty). --- plugins/video/video.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/video/video.py b/plugins/video/video.py index 04bff47..374cfae 100644 --- a/plugins/video/video.py +++ b/plugins/video/video.py @@ -172,13 +172,13 @@ class Video(Plugin): if video['is_dir']: video['small_path'] = subcname + '/' + video['name'] else: - if len(files) > 1: - video['valid'] = True - video.update(self.__metadata_basic(file)) - else: + if 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)) + else: + video['valid'] = True + video.update(self.__metadata_basic(file)) videos.append(video) -- 2.11.4.GIT