<s> from __future__ import unicode_literals <EOL> import re <EOL> import random <EOL> from . common import InfoExtractor <EOL> class VideoPremiumIE ( 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> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : True , <EOL> } , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> def _real_extract ( self , url ) : <EOL> video_id = self . _match_id ( url ) <EOL> webpage_url = '<STR_LIT>' + video_id <EOL> webpage = self . _download_webpage ( webpage_url , video_id ) <EOL> if re . match ( r"<STR_LIT>" , webpage ) : <EOL> webpage = self . _download_webpage ( <EOL> webpage_url , video_id , <EOL> note = '<STR_LIT>' ) <EOL> video_title = self . _html_search_regex ( <EOL> r'<STR_LIT>' , webpage , '<STR_LIT>' ) <EOL> return { <EOL> '<STR_LIT:id>' : video_id , <EOL> '<STR_LIT:url>' : "<STR_LIT>" % random . randint ( <NUM_LIT:1> , <NUM_LIT:16> ) , <EOL> '<STR_LIT>' : "<STR_LIT>" % video_id , <EOL> '<STR_LIT>' : "<STR_LIT>" + video_id , <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:title>' : video_title , <EOL> } </s>
