From: RexYuan Date: Sat, 30 Mar 2019 18:31:33 +0000 (+0800) Subject: [weibo] Extend _VALID_URL (#20496) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=93bb6b1baeddd8e6ea77d814e739e1b076fb248b;p=youtube-dl.git [weibo] Extend _VALID_URL (#20496) --- diff --git a/youtube_dl/extractor/weibo.py b/youtube_dl/extractor/weibo.py index 3cb4d71a6..621df5b54 100644 --- 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[a-zA-Z0-9]+)' + _VALID_URL = r'https?://(?:www\.)?weibo\.com/[0-9]+/(?P[a-zA-Z0-9]+)' _TEST = { 'url': 'https://weibo.com/6275294458/Fp6RGfbff?type=comment', 'info_dict': {