aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/sina.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-06-06 15:05:07 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-06 15:05:07 +0530
commitd3d8d8184aafc22ed11edcd3ac175482fbb468e7 (patch)
tree884950a5a1a7d2ede1623422dfca09e4b33145a8 /yt_dlp/extractor/sina.py
parente85a39717a233ed5d0660d6c2271ee32daf4bc82 (diff)
[extractor] Fix pre-checking archive for some extractors
The `id` regex group must be present for `_match_id` and pre-checking archive to work correctly
Diffstat (limited to 'yt_dlp/extractor/sina.py')
-rw-r--r--yt_dlp/extractor/sina.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/sina.py b/yt_dlp/extractor/sina.py
index 60f2dd053..408311418 100644
--- a/yt_dlp/extractor/sina.py
+++ b/yt_dlp/extractor/sina.py
@@ -18,7 +18,7 @@ from ..utils import (
class SinaIE(InfoExtractor):
_VALID_URL = r'''(?x)https?://(?:.*?\.)?video\.sina\.com\.cn/
(?:
- (?:view/|.*\#)(?P<video_id>\d+)|
+ (?:view/|.*\#)(?P<id>\d+)|
.+?/(?P<pseudo_id>[^/?#]+)(?:\.s?html)|
# This is used by external sites like Weibo
api/sinawebApi/outplay.php/(?P<token>.+?)\.swf
@@ -58,7 +58,7 @@ class SinaIE(InfoExtractor):
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('video_id')
+ video_id = mobj.group('id')
if not video_id:
if mobj.group('token') is not None:
# The video id is in the redirected url