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 )NzYou'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
   