Changeset a5669db9ba0dff76736486bc75e679df460dca36

Show
Ignore:
Timestamp:
11/02/07 22:10:47 (1 year ago)
Author:
Jason Michalski <armooo@armooo.net>
git-committer:
Jason Michalski <armooo@armooo.net> 1194059447 +0000
git-parent:

[5bf1bd3d0d7775822c88bea395306a0c5d786f5b]

git-author:
Jason Michalski <armooo@armooo.net> 1194059447 +0000
Message:

Per tivo height/width

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Config.py

    r5bf1bd3 ra5669db  
    6161    return nearest(width, getValidWidths()) 
    6262 
    63 def getTivoHeight(): 
     63def getTivoHeight(tsn): 
     64    if tsn and config.has_section('_tivo_' + tsn): 
     65        try: 
     66            return config.get('_tivo_' + tsn, 'height_br') 
     67        except NoOptionError: 
     68            pass 
     69 
    6470    try: 
    6571        height = int(config.get('Server', 'height')) 
    66         print nearest(height, getValidHeights()) 
    6772        return nearest(height, getValidHeights()) 
    6873    except NoOptionError: #default 
    6974        return 480 
    7075 
    71 def getTivoWidth(): 
     76def getTivoWidth(tsn): 
     77    if tsn and config.has_section('_tivo_' + tsn): 
     78        try: 
     79            return config.get('_tivo_' + tsn, 'width') 
     80        except NoOptionError: 
     81            pass 
     82 
    7283    try: 
    7384        width = int(config.get('Server', 'width')) 
    74         print nearestTivoWidth(width) 
    7585        return nearestTivoWidth(width) 
    7686    except NoOptionError: #default 
  • plugins/video/transcode.py

    r5bf1bd3 ra5669db  
    66 
    77debug = Config.getDebug() 
    8 TIVO_WIDTH = Config.getTivoWidth() 
    9 TIVO_HEIGHT = Config.getTivoHeight() 
    108MAX_VIDEO_BR = Config.getMaxVideoBR() 
    119BUFF_SIZE = Config.getBuffSize() 
     
    7371        
    7472def select_aspect(inFile, tsn = ''): 
     73    TIVO_WIDTH = Config.getTivoWidth(tsn) 
     74    TIVO_HEIGHT = Config.getTivoHeight(tsn) 
     75     
    7576    type, width, height, fps, millisecs =  video_info(inFile) 
    7677