From: Sergey M․ Date: Sat, 26 Sep 2015 14:54:41 +0000 (+0600) Subject: [qqmusic] Do not capture braced text from the middle of the string X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=d4cd06138c70dd50d574c9a5d96bf585648373d5;p=youtube-dl [qqmusic] Do not capture braced text from the middle of the string --- diff --git a/youtube_dl/extractor/qqmusic.py b/youtube_dl/extractor/qqmusic.py index bf6762034..21cf6f2d6 100644 --- a/youtube_dl/extractor/qqmusic.py +++ b/youtube_dl/extractor/qqmusic.py @@ -114,7 +114,7 @@ class QQMusicIE(InfoExtractor): actual_lrc_lyrics = ''.join( line + '\n' for line in re.findall( - r'(\[[0-9]{2}:[0-9]{2}\.[0-9]{2,}\][^\n]*|\[[^\]]*\])', lrc_content)) + r'(?m)^(\[[0-9]{2}:[0-9]{2}\.[0-9]{2,}\][^\n]*|\[[^\]]*\])', lrc_content)) info_dict = { 'id': mid,