[qqmusic] Do not capture braced text from the middle of the string
[youtube-dl] / youtube_dl / extractor / qqmusic.py
index bf6762034e47dc515788b4f1168084a3f4125953..21cf6f2d6f0d31544aebb4807ab4b0cd16946529 100644 (file)
@@ -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,