Changeset d895ed6be74bc6b9167c119ab28673fea7154920

Show
Ignore:
Timestamp:
01/24/08 17:03:03 (1 year ago)
Author:
wgw <tjm1100@gmail.com>
git-committer:
wgw <tjm1100@gmail.com> 1201215783 -0600
git-parent:

[71d258aa2b0643c743aef76506446d74def9409f]

git-author:
wgw <tjm1100@gmail.com> 1201215783 -0600
Message:

Add default width/height for HD Tivos

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • config.py

    r26a47c2 rd895ed6  
    128128        height = config.getint('Server', 'height') 
    129129        return nearestTivoHeight(height) 
    130     except NoOptionError: #default 
    131         return 480 
     130    except NoOptionError: #defaults for S3/S2 TiVo 
     131        if tsn and tsn[:3] in getHDtivos(): 
     132            return 720 
     133        else: 
     134            return 480 
    132135 
    133136def getTivoWidth(tsn): 
     
    142145        width = config.getint('Server', 'width') 
    143146        return nearestTivoWidth(width) 
    144     except NoOptionError: #default 
    145         return 544 
     147    except NoOptionError: #defaults for S3/S2 TiVo 
     148        if tsn and tsn[:3] in getHDtivos(): 
     149            return 1280 
     150        else: 
     151            return 544 
    146152 
    147153def getAudioBR(tsn = None):