-import re
-
from .common import InfoExtractor
from ..utils import (
determine_ext,
)
(?P<id>\d+)
'''
+ _EMBED_REGEX = [r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//out\.pladform\.ru/player\?.+?)\1']
_TESTS = [{
'url': 'http://out.pladform.ru/player?pl=18079&type=html5&videoid=100231282',
'info_dict': {
'thumbnail': str,
'view_count': int,
'description': str,
- 'category': list,
'uploader_id': '12082',
'uploader': 'Comedy Club',
'duration': 367,
'only_matching': True,
}]
- @staticmethod
- def _extract_url(webpage):
- mobj = re.search(
- r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//out\.pladform\.ru/player\?.+?)\1', webpage)
- if mobj:
- return mobj.group('url')
-
def _real_extract(self, url):
video_id = self._match_id(url)
expected=True)
if not video:
- targetUrl = self._request_webpage(url, video_id, note='Resolving final URL').geturl()
+ targetUrl = self._request_webpage(url, video_id, note='Resolving final URL').url
if targetUrl == url:
raise ExtractorError('Can\'t parse page')
return self.url_result(targetUrl)
if error:
fail(error)
- self._sort_formats(formats)
-
webpage = self._download_webpage(
'http://video.pladform.ru/catalog/video/videoid/%s' % video_id,
video_id)