]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[qqmusic] Allow [mm:ss] timestamps
authorSergey M․ <dstftw@gmail.com>
Sat, 26 Sep 2015 15:15:34 +0000 (21:15 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 26 Sep 2015 15:15:34 +0000 (21:15 +0600)
youtube_dl/extractor/qqmusic.py

index c888234164ab73602ea11bc580be246e420f0579..c98539f6a63c05fd99e0758fe38295afce2304a2 100644 (file)
@@ -129,7 +129,7 @@ class QQMusicIE(InfoExtractor):
 
         actual_lrc_lyrics = ''.join(
             line + '\n' for line in re.findall(
-                r'(?m)^(\[[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,