Changeset 3886559eb7bda4b175df80853f4cb83baba610da
- Timestamp:
- 03/12/08 22:41:21
(10 months ago)
- Author:
- wgw <tjm1100@gmail.com>
- git-committer:
- wgw <tjm1100@gmail.com> 1205379681 -0500
- git-parent:
[a47ec592a6de883f4ae6bca512c23ac5bf1e1231]
- git-author:
- wgw <tjm1100@gmail.com> 1205379681 -0500
- Message:
per tivo optres needed
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re40c8f2 |
r3886559 |
|
| 104 | 104 | return False |
|---|
| 105 | 105 | |
|---|
| 106 | | def getOptres(): |
|---|
| | 106 | def getOptres(tsn = None): |
|---|
| | 107 | if tsn and config.has_section('_tivo_' + tsn): |
|---|
| | 108 | try: |
|---|
| | 109 | return config.getboolean('_tivo_' + tsn, 'optres') |
|---|
| | 110 | except NoOptionError, ValueError: |
|---|
| | 111 | pass |
|---|
| 107 | 112 | try: |
|---|
| 108 | 113 | return config.getboolean('Server', 'optres') |
|---|
| r8d06eb5 |
r3886559 |
|
| 65 | 65 | t.tivos_data = [ (section, dict(config.items(section, raw=True))) for section in config.sections() \ |
|---|
| 66 | 66 | if section.startswith('_tivo_')] |
|---|
| 67 | | t.tivos_known = ["aspect169", "audio_br", "video_br", "video_fps", "width",\ |
|---|
| | 67 | t.tivos_known = ["aspect169", "optres", "video_fps", "video_br", "width",\ |
|---|
| 68 | 68 | "height", "audio_br", "max_audio_br", "audio_fr", "audio_ch",\ |
|---|
| 69 | 69 | "audio_codec", "ffmpeg_pram", "shares"] |
|---|
| ra47ec59 |
r3886559 |
|
| 151 | 151 | debug_write(__name__, fn_attr(), ['aspect169:', aspect169]) |
|---|
| 152 | 152 | |
|---|
| 153 | | optres = config.getOptres() |
|---|
| | 153 | optres = config.getOptres(tsn) |
|---|
| 154 | 154 | |
|---|
| 155 | 155 | debug_write(__name__, fn_attr(), ['optres:', optres]) |
|---|
| … | … | |
| 172 | 172 | multiplier4by3 = (4.0 * TIVO_HEIGHT) / (3.0 * TIVO_WIDTH) |
|---|
| 173 | 173 | |
|---|
| 174 | | if config.isHDtivo(tsn) and height <= TIVO_HEIGHT and config.getOptres() == False: |
|---|
| | 174 | if config.isHDtivo(tsn) and height <= TIVO_HEIGHT and not optres: |
|---|
| 175 | 175 | return [] #pass all resolutions to S3/HD, except heights greater than conf height |
|---|
| 176 | 176 | # else, optres is enabled and resizes SD video to the "S2" standard on S3/HD. |
|---|