[qqmusic] Do not capture braced text from the middle of the string
authorSergey M․ <dstftw@gmail.com>
Sat, 26 Sep 2015 14:54:41 +0000 (20:54 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 26 Sep 2015 14:54:41 +0000 (20:54 +0600)
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,