Changeset f0426e75cb4c2c8d3f917e680de1a0dcd4d1e929

Show
Ignore:
Timestamp:
02/03/08 12:56:21 (1 year ago)
Author:
William McBrine <wmcbrine@gmail.com>
git-committer:
William McBrine <wmcbrine@gmail.com> 1202064981 -0500
git-parent:

[5b250d8dd5a75d6a1a1ed8b32e14d2a2af272748], [6e81239c76acfebbf1478f1fe41686b68fef1756]

git-author:
William McBrine <wmcbrine@gmail.com> 1202064981 -0500
Message:

Merge branch 'master' into subfolders-8.3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • config.py

    rd1133d5 rf0426e7  
    101101        return '-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py %(audio_codec)s -ab %(audio_br)s -f vob -' 
    102102 
    103 def getHDtivos(tsn):  # tsn's of High Definition Tivo's 
     103def isHDtivo(tsn):  # tsn's of High Definition Tivo's 
    104104    return tsn != '' and tsn[:3] in ['648', '652'] 
    105105 
     
    138138        return nearestTivoHeight(height) 
    139139    except NoOptionError: #defaults for S3/S2 TiVo 
    140         if getHDtivos(tsn): 
     140        if isHDtivo(tsn): 
    141141            return 720 
    142142        else: 
     
    154154        return nearestTivoWidth(width) 
    155155    except NoOptionError: #defaults for S3/S2 TiVo 
    156         if getHDtivos(tsn): 
     156        if isHDtivo(tsn): 
    157157            return 1280 
    158158        else: 
     
    172172        return str(min(audiobr, getMaxAudioBR(tsn))) + 'k' 
    173173    except NoOptionError: #defaults for S3/S2 TiVo 
    174         if getHDtivos(tsn): 
     174        if isHDtivo(tsn): 
    175175            return '384k' 
    176176        else: 
     
    186186        return config.get('Server', 'video_br') 
    187187    except NoOptionError: #defaults for S3/S2 TiVo 
    188         if getHDtivos(tsn): 
     188        if isHDtivo(tsn): 
    189189            return '8192k' 
    190190        else: 
     
    213213        return int(int(strtod(config.get('Server', 'max_audio_br'))/1000)/64)*64 
    214214    except NoOptionError:  
    215         if getHDtivos(tsn): 
     215        if isHDtivo(tsn): 
    216216            return int(448) #default to 448, max supported by HD TiVo's 
    217217        else: 
  • plugins/video/transcode.py

    r1fd7a51 r3be2079  
    6666def select_audiocodec(tsn = ''): 
    6767    #check for HD tivo and return compatible audio parameters 
    68     if config.getHDtivos(tsn): 
     68    if config.isHDtivo(tsn): 
    6969        return '-acodec ac3 -ar 48000' 
    7070    else: 
     
    104104    multiplier4by3  =  (4.0 * TIVO_HEIGHT) / (3.0 * TIVO_WIDTH) 
    105105    
    106     if config.getHDtivos(tsn) and height <= TIVO_HEIGHT and config.getOptres() == False: 
     106    if config.isHDtivo(tsn) and height <= TIVO_HEIGHT and config.getOptres() == False: 
    107107        return [] #pass all resolutions to S3/HD, except heights greater than conf height 
    108108                # else, optres is enabled and resizes SD video to the "S2" standard on S3/HD. 
     
    244244        return False 
    245245 
    246     if config.getHDtivos(tsn): 
     246    if config.isHDtivo(tsn): 
    247247        debug_write(['tivo_compatible: ', inFile, ' you have a S3 skiping the rest of the tests', '\n']) 
    248248        return True