diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-06-05 23:19:25 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-06-05 23:19:25 +0800 |
commit | e8ac61e840b5c02e406b910f5f0eed3d8b331969 (patch) | |
tree | 2228c75ebfa67938cf9f1836b99e713cf5050c65 /youtube_dl | |
parent | f00a650705a5e5b4f2b540ea8133a1752e63dd81 (diff) |
[qqmusic] Use meaningful variable names
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/qqmusic.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/youtube_dl/extractor/qqmusic.py b/youtube_dl/extractor/qqmusic.py index c903bee58..bafa81c21 100644 --- a/youtube_dl/extractor/qqmusic.py +++ b/youtube_dl/extractor/qqmusic.py @@ -76,14 +76,14 @@ class QQMusicIE(InfoExtractor): transform_source=strip_jsonp)['key'] formats = [] - for k, f in self._FORMATS.items(): + for format_id, details in self._FORMATS.items(): 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'], - 'abr': f.get('abr') + % (details['prefix'], mid, details['ext'], vkey, guid), + 'format': format_id, + 'format_id': format_id, + 'preference': details['preference'], + 'abr': details.get('abr'), }) self._sort_formats(formats) |