[generic] Add support for vzaar embeds

This commit is contained in:
tetra-eder 2017-08-11 17:00:39 +02:00 committed by Sergey M
parent 6ed99754bb
commit 41918eaa5c
2 changed files with 25 additions and 0 deletions

View file

@ -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(