#NEWLINE# def __getitem__( self , key ) : #NEWLINE# #INDENT# "\n        Read elements from ``YTActions`` object by using `key`. One can use object like a dict (and like a boss, ofc).\n\n        Parameters\n        ----------\n        key : str\n            The key (e.g. ``YTActions['Rick Astley - Never Gonna Give You Up.mp4']``).\n\n        Returns\n        -------\n        YTStor\n            ``YTStor`` object associated with name `key`.\n        " #NEWLINE# _k = os . path . splitext ( key ) #NEWLINE# if ( _k [ 1 ] not in ( '.txt' , '.jpg' ) ) : #NEWLINE# #INDENT# key = _k [ 0 ] #NEWLINE# #UNINDENT# return self . visible_files [ key ]