def set_database(self, db): TC.set_group_id(self, db.library_id)
def __init__(self, max_size=1024, thumbnail_size=(100, 100)): TC.__init__(self, name='gui-thumbnail-cache', min_disk_cache=100, max_size=max_size, thumbnail_size=thumbnail_size)
def init_tc(self, name='1', max_size=1): return ThumbnailCache(name=name, location=self.tdir, max_size=max_size, test_mode=True)