fix MOVIE_REC_FILESIZE, thanks to dr_best
[enigma2.git] / lib / python / Components / Converter / MovieInfo.py
index d5995fe..a973b41 100644 (file)
@@ -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)