<s> from __future__ import unicode_literals <EOL> from . common import InfoExtractor <EOL> from . . compat import compat_urlparse <EOL> from . internetvideoarchive import InternetVideoArchiveIE <EOL> class VideoDetectiveIE ( InfoExtractor ) : <EOL> _VALID_URL = r'<STR_LIT>' <EOL> _TEST = { <EOL> '<STR_LIT:url>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:id>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:title>' : '<STR_LIT>' , <EOL> '<STR_LIT:description>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : <NUM_LIT> , <EOL> } , <EOL> } <EOL> def _real_extract ( self , url ) : <EOL> video_id = self . _match_id ( url ) <EOL> webpage = self . _download_webpage ( url , video_id ) <EOL> og_video = self . _og_search_video_url ( webpage ) <EOL> query = compat_urlparse . urlparse ( og_video ) . query <EOL> return self . url_result ( InternetVideoArchiveIE . _build_url ( query ) , ie = InternetVideoArchiveIE . ie_key ( ) ) </s>
