
    yfI                     F    d dl mZ  eed       [d Zd Zd	dZd	dZd Zy)
   )passthrough_modulez.extractorsc                      ddl m}  | S )z Return a list of supported extractors.
    The order does matter; the first extractor matched is the one handling the URL.
       _ALL_CLASSES)
extractorsr   r   s    ;/usr/lib/python3/dist-packages/yt_dlp/extractor/__init__.pygen_extractor_classesr
      s     )    c                  F    t               D  cg c]	  }  |         c} S c c} w )z Return a list of an instance of every supported extractor.
    The order does matter; the first extractor matched is the one handling the URL.
    )r
   )klasss    r	   gen_extractorsr      s     "7!89EG999s   Nc              #       K   ddl m t        t         fdt	                     d       E d{     y7 	w)zYReturn a list of extractors that are suitable for the given age, sorted by extractor namer   )	GenericIEc                 4    | j                        xr | k7  S N)is_suitable)ier   	age_limits    r	   <lambda>z(list_extractor_classes.<locals>.<lambda>   s    2>>),@y r   c                 6    | j                   j                         S r   )IE_NAMElower)r   s    r	   r   z(list_extractor_classes.<locals>.<lambda>   s    1A1A1C r   )keyN)genericr   sortedfilterr
   )r   r   s   `@r	   list_extractor_classesr      s?     "f@!&CE E E OEs   .><
>c                 H    t        |       D cg c]	  } |        c}S c c}w )zbReturn a list of extractor instances that are suitable for the given age, sorted by extractor name)r   )r   r   s     r	   list_extractorsr    !   s    1)<=RBD===s   c                 ,    ddl m} t        ||  d      S )z7Returns the info extractor class with the given ie_namer   )r   IE) r   getattr)ie_namer   s     r	   get_info_extractorr&   &   s    :'"~..r   r   )compat.compat_utilsr   __name__r
   r   r   r    r&    r   r	   <module>r*      s.    4 8] +:>
/r   