diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-09-26 20:54:41 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-09-26 20:54:41 +0600 |
commit | d4cd06138c70dd50d574c9a5d96bf585648373d5 (patch) | |
tree | d57b1691d268c15fd9bc0d6dbc045fce4971b197 /youtube_dl/extractor/qqmusic.py | |
parent | 961c5cbf172da49b26c09f806b0871719578e0e5 (diff) |
[qqmusic] Do not capture braced text from the middle of the string
Diffstat (limited to 'youtube_dl/extractor/qqmusic.py')
-rw-r--r-- | youtube_dl/extractor/qqmusic.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |