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,