1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-01 16:09:48 +08:00

Update vshare.py

This commit is contained in:
votegreen
2017-08-17 17:15:54 +10:00
committed by GitHub
Unverified
parent a1aa659662
commit 65c69b229d
+4 -2
View File
@@ -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)<div id="root-container">(.+?)<br/>', webpage, 'title')
video_url = self._search_regex(
video_url = re.sub(r'http://', r'https://', self._search_regex(
r'<a[^>]+href=(["\'])(?P<url>(?:https?:)?//.+?)\1[^>]*>[Cc]lick\s+here',
webpage, 'video url', group='url')
webpage, 'video url', group='url'))
return {
'id': video_id,