U
    g                     @   sL   d dl mZ ddlmZ G dd deZG dd deZG dd	 d	eZd
S )   )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(?:url|URL|yt-dlp)$urlTr   Zonly_matchingURLc                 C   s.   d| d}|  ds|d7 }t|ddd S )Nz)You've asked yt-dlp to download the URL "z]". That doesn't make any sense. Simply remove the parameter in your command or configuration.verbosezN Add -v to the command line to see what arguments and configuration yt-dlp hasTexpected)	get_paramr   )selfr   msg r   C/tmp/pip-unpacked-wheel-q5ljy6pj/yt_dlp/extractor/commonmistakes.py_real_extract   s
    

zCommonMistakesIE._real_extractN__name__
__module____qualname__ZIE_DESCZ
_VALID_URLZ_TESTSr   r   r   r   r   r      s   r   c                   @   s(   e Zd ZdZdZdddgZdd ZdS )	UnicodeBOMIEFz(?P<bom>\ufeff)(?P<id>.*)$u-   ﻿http://www.youtube.com/watch?v=BaW_jenozKcTr   c                 C   s&   |  |}| d| d | |S )NzPYour URL starts with a Byte Order Mark (BOM). Removing the BOM and looking for "z" ...)Z	_match_idZreport_warningZ
url_result)r   r   Zreal_urlr   r   r   r   %   s
    

zUnicodeBOMIE._real_extractNr   r   r   r   r   r      s   r   c                   @   s(   e Zd ZdZdZdddgZdd ZdS )	BlobIEFzblob:zAblob:https://www.youtube.com/4eb3d090-a761-46e6-8083-c32016a36e3bTr   c                 C   s   t dddd S )NzYou've asked yt-dlp to download a blob URL. A blob URL exists only locally in your browser. It is not possible for yt-dlp to access it.Tr   r   )r   r   r   r   r   r   6   s    zBlobIE._real_extractNr   r   r   r   r   r   -   s   r   N)commonr   utilsr   r   r   r   r   r   r   r   <module>   s   