
    yf                     >    d dl mZ ddlmZ ddlmZ  G d de      Zy)   )InfoExtractor   )compat_parse_qs)parse_durationc            	       0    e Zd ZdZdddddddd	d
dZd Zy)	GoshgayIEz6https?://(?:www\.)?goshgay\.com/video(?P<id>\d+?)($|/)z7http://www.goshgay.com/video299069/diesel_sfw_xxx_video 4b6db9a0a333142eb9f15913142b0ed1299069flvzDIESEL SFW XXX Videozre:^http://.*\.jpg$P      )idexttitle	thumbnailduration	age_limit)urlmd5	info_dictc                 0   | j                  |      }| j                  ||      }| j                  d|d      }t        | j                  d|dd            }t	        | j                  d|d            }|j                  d	d g      d
   }|d   d
   }|||||ddS )Nz
<h2>(.*?)<r   z+<span class="duration">\s*-?\s*(.*?)</span>r   F)fatalz6<embed.+?id="flash-player-embed".+?flashvars="([^"]+)"	flashvarsurl_bigthumb    flv_urlr   )r   r   r   r   r   r   )	_match_id_download_webpage_html_search_regexr   r   get)	selfr   video_idwebpager   r   r   r   	video_urls	            :/usr/lib/python3/dist-packages/yt_dlp/extractor/goshgay.py_real_extractzGoshgayIE._real_extract   s    >>#&((h7''7G-!$"9"9:Zu #: #. / $D$;$;E[%" #	 MM.4&9!<	i(+	 " 
 	
    N)__name__
__module____qualname__
_VALID_URL_TESTr&    r'   r%   r   r   
   s0    JJH1+/
E
r'   r   N)commonr   compatr   utilsr   r   r-   r'   r%   <module>r1      s    !
&
 &
r'   