projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
961c5cb
)
[qqmusic] Do not capture braced text from the middle of the string
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 14:54:41 +0000
(20:54 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Sep 2015 14:54:41 +0000
(20:54 +0600)
youtube_dl/extractor/qqmusic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/qqmusic.py
b/youtube_dl/extractor/qqmusic.py
index bf6762034e47dc515788b4f1168084a3f4125953..21cf6f2d6f0d31544aebb4807ab4b0cd16946529 100644
(file)
--- 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,