From 4ea103b454f3a5695cdc20979877624621975f62 Mon Sep 17 00:00:00 2001 From: wgw Date: Sat, 29 Mar 2008 01:22:48 -0500 Subject: [PATCH] Can now use 169setting --- plugins/video/transcode.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/video/transcode.py b/plugins/video/transcode.py index 59214be..247fceb 100644 --- a/plugins/video/transcode.py +++ b/plugins/video/transcode.py @@ -349,9 +349,9 @@ def tivo_compatable(inFile, tsn = ''): debug_write(__name__, fn_attr(), ['FALSE,', fps, 'fps, should be 29.97.', inFile]) return False - if tsn[:3] == '540': - if vdar == None or not vdar in (float(4)/float(3), float(8)/float(9)): - debug_write(__name__, fn_attr(), ['FALSE, ratio', vdar, 'not supported by 540 tivo.', inFile]) + if not config.get169Setting(tsn): + if vdar == None or not vdar in (4.0/3.0, 8.0/9.0): + debug_write(__name__, fn_attr(), ['FALSE, DAR', vdar, 'not supported by BLACKLIST_169 tivos.', inFile]) return False for mode in supportedModes: @@ -494,7 +494,6 @@ def video_info(inFile): vdar = float(x.group(1))/float(x.group(2)) else: vdar = None - print vdar info_cache[inFile] = (mtime, (codec, width, height, fps, millisecs, kbps, akbps, acodec, afreq, vpar, vdar)) debug_write(__name__, fn_attr(), ['Codec=', codec, ' width=', width, ' height=', height, ' fps=', fps, ' millisecs=', millisecs, ' kbps=', kbps, ' akbps=', akbps, ' acodec=', acodec, ' afreq=', afreq, ' par=', vpar, ' dar=', vdar]) -- 2.11.4.GIT