many emptyfications
This commit is contained in:
parent
400cb1424e
commit
f6e2f0a657
13 changed files with 51 additions and 46 deletions
|
|
@ -20,7 +20,7 @@
|
|||
from PyQt4.QtGui import QFrame
|
||||
|
||||
from weboob.applications.qcineoob.ui.minisubtitle_ui import Ui_MiniSubtitle
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.capabilities.base import empty
|
||||
|
||||
class MiniSubtitle(QFrame):
|
||||
def __init__(self, weboob, backend, subtitle, parent=None):
|
||||
|
|
@ -33,7 +33,7 @@ class MiniSubtitle(QFrame):
|
|||
self.backend = backend
|
||||
self.subtitle = subtitle
|
||||
self.ui.nameLabel.setText(subtitle.name)
|
||||
if subtitle.nb_cd != NotAvailable:
|
||||
if not empty(subtitle.nb_cd):
|
||||
self.ui.nbcdLabel.setText(u'%s'%subtitle.nb_cd)
|
||||
self.ui.backendLabel.setText(backend.name)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue