aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vzaar.py
diff options
context:
space:
mode:
authortetra-eder <30865771+tetra-eder@users.noreply.github.com>2017-08-11 17:00:39 +0200
committerSergey M <dstftw@gmail.com>2017-08-11 22:00:39 +0700
commit41918eaa5ce1225f7e0a94882e7c77919342210d (patch)
tree3cf40f06bfc13e89652a5b9457009f18aa3caeb4 /youtube_dl/extractor/vzaar.py
parent6ed99754bb6074454b5d4875cc7b8b442e763ec5 (diff)
[generic] Add support for vzaar embeds
Diffstat (limited to 'youtube_dl/extractor/vzaar.py')
-rw-r--r--youtube_dl/extractor/vzaar.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/vzaar.py b/youtube_dl/extractor/vzaar.py
index b270f08d1..02fcd52c7 100644
--- a/youtube_dl/extractor/vzaar.py
+++ b/youtube_dl/extractor/vzaar.py
@@ -1,6 +1,8 @@
# coding: utf-8
from __future__ import unicode_literals
+import re
+
from .common import InfoExtractor
from ..utils import (
int_or_none,
@@ -28,6 +30,12 @@ class VzaarIE(InfoExtractor):
},
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return re.findall(
+ r'<iframe[^>]+src=["\']((?:https?:)?//(?:view\.vzaar\.com)/[0-9]+)',
+ webpage)
+
def _real_extract(self, url):
video_id = self._match_id(url)
video_data = self._download_json(