[qqmusic] Rearrange codes
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 5 Jun 2015 15:16:34 +0000 (23:16 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 5 Jun 2015 15:16:34 +0000 (23:16 +0800)
youtube_dl/extractor/qqmusic.py

index e24ddaefe6785b17d28e735c99227dcee0f1ec0d..c903bee58c792ec870ff2c7687b080a34fce78a4 100644 (file)
@@ -80,7 +80,9 @@ class QQMusicIE(InfoExtractor):
             formats.append({
                 'url': 'http://cc.stream.qqmusic.qq.com/%s%s.%s?vkey=%s&guid=%s&fromtag=0'
                        % (f['prefix'], mid, f['ext'], vkey, guid),
-                'format': k, 'format_id': k, 'preference': f['preference'],
+                'format': k,
+                'format_id': k,
+                'preference': f['preference'],
                 'abr': f.get('abr')
             })
         self._sort_formats(formats)