From a2c66bdc8599c62f1eb4d4b7e0dcdad9c9791ffa Mon Sep 17 00:00:00 2001 From: wgw Date: Mon, 31 Dec 2007 05:45:31 -0600 Subject: [PATCH] est. size bug fix Signed-off-by: wgw --- plugins/video/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/video/video.py b/plugins/video/video.py index a7edfb5..478d3fe 100644 --- a/plugins/video/video.py +++ b/plugins/video/video.py @@ -218,8 +218,8 @@ class Video(Plugin): if transcode.tivo_compatable(full_path): # Is TiVo compatible mpeg2 return int(os.stat(full_path).st_size) else: # Must be re-encoded - audioBPS = strtod(config.getAudioBR()) - videoBPS = strtod(config.getVideoBR()) + audioBPS = strtod(config.getAudioBR(tsn)) + videoBPS = strtod(config.getVideoBR(tsn)) bitrate = audioBPS + videoBPS return int((self.__duration(full_path)/1000)*(bitrate * 1.02 / 8)) -- 2.11.4.GIT