]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/freevideo.py
c7bec027bbe37d8c13f645ae918655caeb5a53cd
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)"',