3
�b`  ã               @   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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   úOC:\Users\Broad\Desktop\All-Down\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 o$dkn  r.g n
dddœgZdd	„ Zd
S )ÚUnicodeBOMIEFz(?P<bom>\ufeff)(?P<id>.*)$é   r   u-   ï»¿http://www.youtube.com/watch?v=BaW_jenozKcT)r   r	   c             C   s"   | j |ƒ}| jd| ƒ | j|ƒ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   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
   