[Metadata][XBMC] Add fileinfo to nfo

Also fixed a int / int = int divide bug
This commit is contained in:
mano3m
2013-11-23 01:04:41 +01:00
parent e4993eac24
commit 1b5bc1fa05
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -454,7 +454,7 @@ class Scanner(Plugin):
data['resolution_width'] = meta.get('resolution_width', 720)
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'] = round(float(meta.get('resolution_width', 720)) / meta.get('resolution_height', 480), 2)
except:
log.debug('Error parsing metadata: %s %s', (cur_file, traceback.format_exc()))
pass