From 921bcd3431cf0fb52c273471d38b572775e17f28 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sun, 30 Dec 2007 14:00:45 -0500 Subject: [PATCH] Use the same rounding for width as for height in platform sections -- covers ticket #57. --- config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index 3e415d5..6dc258e 100644 --- a/config.py +++ b/config.py @@ -125,7 +125,7 @@ def getTivoHeight(tsn): if tsn and config.has_section('_tivo_' + tsn): try: height = int(config.get('_tivo_' + tsn, 'height')) - return nearest(height, getValidHeights()) + return nearestTivoHeight(height) except NoOptionError: pass @@ -138,7 +138,8 @@ def getTivoHeight(tsn): def getTivoWidth(tsn): if tsn and config.has_section('_tivo_' + tsn): try: - return config.get('_tivo_' + tsn, 'width') + width = int(config.get('_tivo_' + tsn, 'width')) + return nearestTivoWidth(width) except NoOptionError: pass @@ -183,4 +184,3 @@ def getBuffSize(): return config.get('Server', 'bufsize') except NoOptionError: #default 1024k return '1024k' - -- 2.11.4.GIT