From 65c69b229d02aa9cbde2d0cffac10884937af564 Mon Sep 17 00:00:00 2001 From: votegreen <29121742+votegreen@users.noreply.github.com> Date: Thu, 17 Aug 2017 17:15:54 +1000 Subject: [PATCH] Update vshare.py --- youtube_dl/extractor/vshare.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/vshare.py b/youtube_dl/extractor/vshare.py index 5addbc280..f21a56827 100644 --- a/youtube_dl/extractor/vshare.py +++ b/youtube_dl/extractor/vshare.py @@ -1,6 +1,8 @@ # coding: utf-8 from __future__ import unicode_literals +import re + from .common import InfoExtractor @@ -27,9 +29,9 @@ class VShareIE(InfoExtractor): title = self._html_search_regex( r'(?s)
(.+?)
', webpage, 'title') - video_url = self._search_regex( + video_url = re.sub(r'http://', r'https://', self._search_regex( r']+href=(["\'])(?P(?:https?:)?//.+?)\1[^>]*>[Cc]lick\s+here', - webpage, 'video url', group='url') + webpage, 'video url', group='url')) return { 'id': video_id,