"""Print msg to screen, prefixing it with '[ie_name]'"""
self._downloader.to_screen(u'[%s] %s' % (self.IE_NAME, msg))
+ def report_extraction(self, id_or_name):
+ """Report information extraction."""
+ self.to_screen(u'%s: Extracting information' % id_or_name)
+
#Methods for following #608
#They set the correct value of the '_type' key
def video_result(self, video_info):
"""Report webpage download."""
self.to_screen(u'%s: Downloading webpage' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_initialize(self):
# Retrieve disclaimer
request = compat_urllib_request.Request(self._DISCLAIMER)
def __init__(self, downloader=None):
InfoExtractor.__init__(self, downloader)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
# Extract id and simplified title from URL
mobj = re.match(self._VALID_URL, url)
"""Report webpage download."""
self.to_screen(u'%s: Downloading webpage' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
# Extract id from URL
mobj = re.match(self._VALID_URL, url)
"""Report webpage download."""
self.to_screen(u'%s: Downloading webpage' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url, new_video=True):
# Extract ID from URL
mobj = re.match(self._VALID_URL, url)
"""Report webpage download."""
self.to_screen(u'%s: Downloading webpage' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url, new_video=True):
# Extract ID from URL
mobj = re.match(self._VALID_URL, url)
"""Report webpage download."""
self.to_screen(u'%s: Downloading webpage' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def fetch_webpage(self, url):
request = compat_urllib_request.Request(url)
try:
self._downloader.report_warning(u'Falling back on generic information extractor.')
self.to_screen(u'%s: Downloading webpage' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def report_following_redirect(self, new_url):
"""Report information extraction."""
self._downloader.to_screen(u'[redirect] Following redirect to %s' % new_url)
"""Report webpage download."""
self.to_screen(u'%s: Downloading webpage' % file_id)
- def report_extraction(self, file_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % file_id)
-
def _real_extract(self, url):
file_id = url.split('/')[-1]
# Rebuild url in english locale
_URL_EXT = r'^.*\.([a-z0-9]+)$'
IE_NAME = u'blip.tv'
- def report_extraction(self, file_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % file_id)
-
def report_direct_download(self, title):
"""Report information extraction."""
self.to_screen(u'%s: Direct download detected' % title)
def __init__(self, downloader=None):
InfoExtractor.__init__(self, downloader)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self,url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
"""Receives a URL and returns True if suitable for this IE."""
return re.match(cls._VALID_URL, url, re.VERBOSE) is not None
- def report_extraction(self, episode_id):
- self.to_screen(u'%s: Extracting information' % episode_id)
-
def report_config_download(self, episode_id, media_id):
self.to_screen(u'%s: Downloading configuration for %s' % (episode_id, media_id))
_VALID_URL = r'^(https?://)?(www\.)?escapistmagazine\.com/videos/view/(?P<showname>[^/]+)/(?P<episode>[^/?]+)[/?]?.*$'
IE_NAME = u'escapist'
- def report_extraction(self, showName):
- self.to_screen(u'%s: Extracting information' % showName)
-
def report_config_download(self, showName):
self.to_screen(u'%s: Downloading configuration' % showName)
"""Report information extraction."""
self.to_screen(u'%s: Downloading XML manifest' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
_VALID_URL = r'^(?:https?://)?(?:www\.)?xvideos\.com/video([0-9]+)(?:.*)'
IE_NAME = u'xvideos'
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
"""Report information extraction."""
self.to_screen(u'%s: Resolving id' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Retrieving stream' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
"""Report information extraction."""
self.to_screen(u'%s: Resolving id' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Retrieving stream' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
"""Information extractor for infoq.com"""
_VALID_URL = r'^(?:https?://)?(?:www\.)?infoq\.com/[^/]+/[^/]+$'
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
"""Report JSON download."""
self.to_screen(u'Downloading json')
- def report_extraction(self, file_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % file_id)
-
def get_urls(self, jsonData, fmt, bitrate='best'):
"""Get urls from 'audio_formats' section in json"""
file_url = None
"""Report information extraction."""
self.to_screen(u'%s: Downloading webpage' % objid)
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
_VALID_URL = r'^(?P<proto>https?://)?(?:www\.)?mtv\.com/videos/[^/]+/(?P<videoid>[0-9]+)/[^/]+$'
IE_NAME = u'mtv'
- def report_extraction(self, video_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
"""Report webpage download."""
self.to_screen(u'%s: Downloading webpage' % file_id)
- def report_extraction(self, file_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % file_id)
-
def _gen_sid(self):
nowTime = int(time.time() * 1000)
random1 = random.randint(1000,1998)
"""Report information extraction"""
self.to_screen(u'%s: Downloading webpage' % video_id)
- def report_extraction(self, video_id):
- """Report information extraction"""
- self.to_screen(u'%s: Extracting information' % video_id)
-
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
if mobj is None:
_JUSTIN_PAGE_LIMIT = 100
IE_NAME = u'justin.tv'
- def report_extraction(self, file_id):
- """Report information extraction."""
- self.to_screen(u'%s: Extracting information' % file_id)
-
def report_download_page(self, channel, offset):
"""Report attempt to download a single page of videos."""
self.to_screen(u'%s: Downloading video information from %d to %d' %