def __getitem__(self, key):

        _k = os.path.splitext(key)

        if _k[1] not in ('.txt', '.jpg'):
            key = _k[0]

        return self.visible_files[key]
Read elements from ``YTActions`` object by using `key`. One can use object like a dict (and like a boss, ofc).
dataset/ETHPy150Open rasguanabana/ytfs/ytfs/actions.py/YTActions.__getitem__