- mobj = re.match(self._VALID_URL, url)
- if mobj is None:
- raise ExtractorError('Invalid search query "%s"' % query)
-
- video_id = mobj.group('videoid')
-
- # Get webpage content
- webpage = self._download_webpage(url, video_id)
-
- age_limit = self._rta_search(webpage)
- if age_limit == 0:
- # interpret 0 as mis-detection since this site is adult-content only.
- # However, if we get non-0, assume the rtalabel started giving proper
- # results
- age_limit = 18
+ video_id = self._match_id(url)
+ webpage, handle = self._download_webpage_handle(url, video_id)
+ if '//www.czechav.com/' in handle.geturl():
+ raise ExtractorError(
+ 'Access to freevideo is blocked from your location',
+ expected=True)