From 16e7b15f76dc4d8755a8c4091b23ffdd57a89c59 Mon Sep 17 00:00:00 2001 From: changren-wcr <105254603+changren-wcr@users.noreply.github.com> Date: Thu, 16 Jun 2022 19:14:08 +0800 Subject: [PATCH] use youtube-dl match function instead of native python re Co-authored-by: dirkf --- youtube_dl/extractor/qingting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/qingting.py b/youtube_dl/extractor/qingting.py index 04fabbb37..72a44e3e6 100644 --- a/youtube_dl/extractor/qingting.py +++ b/youtube_dl/extractor/qingting.py @@ -20,7 +20,7 @@ class QingTingIE(InfoExtractor): } def _real_extract(self, url): - video_id = re.search(self._VALID_URL, url).group('id') + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) title = self._html_search_regex(r'(?s)]*>(.*)', webpage, 'title', default=None) or self._og_search_title(webpage) url = self._search_regex(