def __getitem__(self, key):

        """
        Read elements from ``YTActions`` object by using `key`. One can use object like a dict (and like a boss, ofc).

        Parameters
        ----------
        key : str
            The key (e.g. ``YTActions['Rick Astley - Never Gonna Give You Up.mp4']``).

        Returns
        -------
        YTStor
            ``YTStor`` object associated with name `key`.
        """

        _k = os.path.splitext(key)

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

        return self.visible_files[key]
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).

        Parameters
        ----------
        key : str
            The key (e.g. ``YTActions['Rick Astley - Never Gonna Give You Up.mp4']``).

        Returns
        -------
        YTStor
            ``YTStor`` object associated with name `key`.