diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/Converter/MovieInfo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/Components/Converter/MovieInfo.py b/lib/python/Components/Converter/MovieInfo.py index d5995fe8..a973b41f 100644 --- a/lib/python/Components/Converter/MovieInfo.py +++ b/lib/python/Components/Converter/MovieInfo.py @@ -41,7 +41,9 @@ class MovieInfo(Converter, object): rec_ref_str = info.getInfoString(service, iServiceInformation.sServiceref) return ServiceReference(rec_ref_str).getServiceName() elif self.type == self.MOVIE_REC_FILESIZE: - return "%d MB" % (info.getInfoObject(service, iServiceInformation.sFileSize) / (1024*1024)) + filesize = info.getInfoObject(service, iServiceInformation.sFileSize) + if filesize is not None: + return "%d MB" % (filesize / (1024*1024)) return "" text = property(getText) |
