1 from __future__ import unicode_literals
3 from .common import InfoExtractor
4 from ..utils import ExtractorError
7 class FreeVideoIE(InfoExtractor):
8 _VALID_URL = r'^http://www.freevideo.cz/vase-videa/(?P<id>[^.]+)\.html(?:$|[?#])'
11 'url': 'http://www.freevideo.cz/vase-videa/vysukany-zadecek-22033.html',
13 'id': 'vysukany-zadecek-22033',
15 "title": "vysukany-zadecek-22033",
18 'skip': 'Blocked outside .cz',
21 def _real_extract(self, url):
22 video_id = self._match_id(url)
23 webpage, handle = self._download_webpage_handle(url, video_id)
24 if '//www.czechav.com/' in handle.geturl():
26 'Access to freevideo is blocked from your location',
29 video_url = self._search_regex(
30 r'\s+url: "(http://[a-z0-9-]+.cdn.freevideo.cz/stream/.*?/video.mp4)"',