logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 93bb6b1baeddd8e6ea77d814e739e1b076fb248b
parent b43c5f474a7be2f7dbfd4c887ded6c751f081d73
Author: RexYuan <RexYuan@users.noreply.github.com>
Date:   Sun, 31 Mar 2019 02:31:33 +0800

[weibo] Extend _VALID_URL (#20496)


Diffstat:

Myoutube_dl/extractor/weibo.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/weibo.py b/youtube_dl/extractor/weibo.py @@ -19,7 +19,7 @@ from ..utils import ( class WeiboIE(InfoExtractor): - _VALID_URL = r'https?://weibo\.com/[0-9]+/(?P<id>[a-zA-Z0-9]+)' + _VALID_URL = r'https?://(?:www\.)?weibo\.com/[0-9]+/(?P<id>[a-zA-Z0-9]+)' _TEST = { 'url': 'https://weibo.com/6275294458/Fp6RGfbff?type=comment', 'info_dict': {