aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/biqle.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-05-06 15:02:40 +0100
committerremitamine <remitamine@gmail.com>2016-05-06 15:02:40 +0100
commit04e88ca2cac8f97e78cdee2825946e94b6173023 (patch)
treec547276074d24b0ccd1ef5cc1f0b4f3c6d814c81 /youtube_dl/extractor/biqle.py
parent6f59aa934bd5842a57d4c27ace0f3735be18ac27 (diff)
[vk] improve extraction(fixes #7976)
Diffstat (limited to 'youtube_dl/extractor/biqle.py')
-rw-r--r--youtube_dl/extractor/biqle.py39
1 files changed, 39 insertions, 0 deletions
diff --git a/youtube_dl/extractor/biqle.py b/youtube_dl/extractor/biqle.py
new file mode 100644
index 000000000..ae4579b33
--- /dev/null
+++ b/youtube_dl/extractor/biqle.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+from __future__ import unicode_literals
+
+from .common import InfoExtractor
+
+
+class BIQLEIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?biqle\.(?:com|org|ru)/watch/(?P<id>-?\d+_\d+)'
+ _TESTS = [{
+ 'url': 'http://www.biqle.ru/watch/847655_160197695',
+ 'md5': 'ad5f746a874ccded7b8f211aeea96637',
+ 'info_dict': {
+ 'id': '160197695',
+ 'ext': 'mp4',
+ 'title': 'Foo Fighters - The Pretender (Live at Wembley Stadium)',
+ 'uploader': 'Andrey Rogozin',
+ 'upload_date': '20110605',
+ }
+ }, {
+ 'url': 'https://biqle.org/watch/-44781847_168547604',
+ 'md5': '7f24e72af1db0edf7c1aaba513174f97',
+ 'info_dict': {
+ 'id': '168547604',
+ 'ext': 'mp4',
+ 'title': 'Ребенок в шоке от автоматической мойки',
+ 'uploader': 'Dmitry Kotov',
+ }
+ }]
+
+ def _real_extract(self, url):
+ video_id = self._match_id(url)
+ webpage = self._download_webpage(url, video_id)
+ embed_url = self._proto_relative_url(self._search_regex(
+ r'<iframe.+?src="((?:http:)?//daxab\.com/[^"]+)".*?></iframe>', webpage, 'embed url'))
+
+ return {
+ '_type': 'url_transparent',
+ 'url': embed_url,
+ }