X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/dbe0c802ce377fe052622522be8e3971e579ba9b..857126aa16af5edd44a67dae3c3039885063d5aa:/lib/python/Components/Converter/MovieInfo.py 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)