def __init__(self, meta):
    self.index = 0
    self.total = 1
    self.text_enabled = getattr(meta, 'text_enabled', False)
def __init__(self, meta):
    self.index = 0
    self.total = 1
    self.text_enabled = getattr(meta, 'text_enabled', False)