|
@ -432,6 +432,7 @@ class Scanner(Plugin): |
|
|
data['audio'] = meta.get('audio', self.getCodec(cur_file, self.codecs['audio'])) |
|
|
data['audio'] = meta.get('audio', self.getCodec(cur_file, self.codecs['audio'])) |
|
|
data['resolution_width'] = meta.get('resolution_width', 720) |
|
|
data['resolution_width'] = meta.get('resolution_width', 720) |
|
|
data['resolution_height'] = meta.get('resolution_height', 480) |
|
|
data['resolution_height'] = meta.get('resolution_height', 480) |
|
|
|
|
|
data['audio_channels'] = meta.get('audio_channels', 2.0) |
|
|
data['aspect'] = meta.get('resolution_width', 720) / meta.get('resolution_height', 480) |
|
|
data['aspect'] = meta.get('resolution_width', 720) / meta.get('resolution_height', 480) |
|
|
except: |
|
|
except: |
|
|
log.debug('Error parsing metadata: %s %s', (cur_file, traceback.format_exc())) |
|
|
log.debug('Error parsing metadata: %s %s', (cur_file, traceback.format_exc())) |
|
@ -476,6 +477,7 @@ class Scanner(Plugin): |
|
|
'audio': ac, |
|
|
'audio': ac, |
|
|
'resolution_width': tryInt(p.video[0].width), |
|
|
'resolution_width': tryInt(p.video[0].width), |
|
|
'resolution_height': tryInt(p.video[0].height), |
|
|
'resolution_height': tryInt(p.video[0].height), |
|
|
|
|
|
'audio_channels': p.audio[0].channels, |
|
|
} |
|
|
} |
|
|
except ParseError: |
|
|
except ParseError: |
|
|
log.debug('Failed to parse meta for %s', filename) |
|
|
log.debug('Failed to parse meta for %s', filename) |
|
|