fix MOVIE_REC_FILESIZE, thanks to dr_best
authorFelix Domke <tmbinc@2mac.waldobjekt.org>
Fri, 3 Jul 2009 11:45:02 +0000 (13:45 +0200)
committerFelix Domke <tmbinc@2mac.waldobjekt.org>
Fri, 3 Jul 2009 11:45:02 +0000 (13:45 +0200)
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)