From 37713ca7f8904747854879a9639c21241bdc1567 Mon Sep 17 00:00:00 2001 From: yash Date: Wed, 1 Apr 2020 21:44:43 -0700 Subject: [PATCH] Solved --- youtube_dl/extractor/vlare.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 youtube_dl/extractor/vlare.py diff --git a/youtube_dl/extractor/vlare.py b/youtube_dl/extractor/vlare.py new file mode 100644 index 000000000..43a0eb023 --- /dev/null +++ b/youtube_dl/extractor/vlare.py @@ -0,0 +1,28 @@ +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class vlareIE(InfoExtractor): + _VALID_URL = r'(?:https?://)?(?:www\.)?vlare\.tv/v/(?P\w+)' + + def _real_extract(self, url): + video_id = self._match_id(url) + + webpage = self._download_webpage( + url, video_id + ) + + title = self._html_search_regex(r'(.+?)', webpage, 'title') + + download_url = self._html_search_regex( + + r'((https:\/\/)v\.vlare\.tv/[a-zA-Z0-9]*\.[0-9]*\.mp4)', + + webpage, "download_url" + ) + return { + 'id': video_id, + 'url': download_url, + 'title': title + }