U
    ¦y^  ã                   @   sP   d dl mZ d dlZddlmZ ddlmZ G dd„ deƒZG d	d
„ d
eƒZdS )é    )Úunicode_literalsNé   )ÚInfoExtractoré   )ÚExtractorErrorc                   @   s0   e Zd ZdZdZdddœdddœgZdd„ Zd	S )
ÚCommonMistakesIEFz(?x)
        (?:url|URL)$
    ÚurlT©r   Úonly_matchingÚURLc                 C   s.   d| }| j j d¡s|d7 }t|dd�‚d S )NzŒYou've asked youtube-dl to download the URL "%s". That doesn't make any sense. Simply remove the parameter in your command or configuration.ÚverbosezS Add -v to the command line to see what arguments and configuration youtube-dl got.T)Úexpected)Ú_downloaderÚparamsÚgetr   )Úselfr   Úmsg© r   úVC:\Users\TaGoRe\Desktop\beinconnect-dl\binaries\youtube_dl\extractor\commonmistakes.pyÚ_real_extract   s    üzCommonMistakesIE._real_extractN)Ú__name__Ú
__module__Ú__qualname__ÚIE_DESCÚ
_VALID_URLÚ_TESTSr   r   r   r   r   r   	   s   þþýr   c                   @   sF   e Zd ZdZdZdej  k r&dkr.n ng n
dddœgZdd	„ Zd
S )ÚUnicodeBOMIEFz(?P<bom>\ufeff)(?P<id>.*)$)é   r   )r   r   u-   ï»¿http://www.youtube.com/watch?v=BaW_jenozKcTr	   c                 C   s"   |   |¡}|  d| ¡ |  |¡S )NzWYour URL starts with a Byte Order Mark (BOM). Removing the BOM and looking for "%s" ...)Ú	_match_idÚreport_warningÚ
url_result)r   r   Úreal_urlr   r   r   r   -   s    
ÿÿzUnicodeBOMIE._real_extractN)	r   r   r   r   r   ÚsysÚversion_infor   r   r   r   r   r   r   "   s   þr   )	Ú
__future__r   r"   Úcommonr   Úutilsr   r   r   r   r   r   r   Ú<module>   s
   