diff --git a/docs/supportedsites.md b/docs/supportedsites.md index 02bc088ab..b2adbf2f9 100644 --- a/docs/supportedsites.md +++ b/docs/supportedsites.md @@ -37,6 +37,7 @@ - **aenetworks**: A+E Networks: A&E, Lifetime, History.com, FYI Network and History Vault - **afreecatv**: afreecatv.com - **AirMozilla** + - **AirVuz** - **AliExpressLive** - **AlJazeera** - **Allocine** diff --git a/youtube_dl/extractor/airvuz.py b/youtube_dl/extractor/airvuz.py new file mode 100644 index 000000000..a53dd0339 --- /dev/null +++ b/youtube_dl/extractor/airvuz.py @@ -0,0 +1,29 @@ +# coding: utf-8 +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class AirVuzIE(InfoExtractor): + _VALID_URL = r'https?://(?:www\.)?airvuz\.com/video/(?:.+)?id=(?P.+)' + _TEST = { + 'url': 'https://www.airvuz.com/video/An-Imaginary-World?id=599e85c49282a717c50f2f7a', + 'info_dict': { + 'id': '599e85c49282a717c50f2f7a', + 'ext': 'mp4', + 'title': 'md5:7fc56270e7a70fa81a5935b72eacbe29', + }, + } + + def _real_extract(self, url): + video_id = self._match_id(url) + webpage = self._download_webpage(url, video_id) + + title = self._html_search_meta('og:title', webpage) + video_url = self._html_search_regex(r']+?(?:name|property)=(?:\'og:video:url\'|"og:video:url"|og:video:url)[^>]+?content=(?:"([^"]+?)"|\'([^\']+?)\'|([^\s"\'=<>`]+))', webpage, 'video_url') + + return { + 'id': video_id, + 'title': title, + 'url': video_url, + } diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 64d1fa251..2393791c2 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -34,6 +34,7 @@ from .aenetworks import ( ) from .afreecatv import AfreecaTVIE from .airmozilla import AirMozillaIE +from .airvuz import AirVuzIE from .aljazeera import AlJazeeraIE from .alphaporno import AlphaPornoIE from .amcnetworks import AMCNetworksIE