diff options
author | ping <lipng.ong@gmail.com> | 2015-05-13 01:37:56 +0800 |
---|---|---|
committer | ping <lipng.ong@gmail.com> | 2015-05-13 01:37:56 +0800 |
commit | 86ec1e487c4908f4d0d0ece512007a2e5fedc593 (patch) | |
tree | 4ebfed5dd780e7e468414522d7389797671118c9 | |
parent | fd4eefed39595850b864d3be9711224e4e8e9dd4 (diff) |
[qqmusic] Code fixes
-rw-r--r-- | youtube_dl/extractor/qqmusic.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/qqmusic.py b/youtube_dl/extractor/qqmusic.py index 3401dcaef..bae2ce31a 100644 --- a/youtube_dl/extractor/qqmusic.py +++ b/youtube_dl/extractor/qqmusic.py @@ -212,10 +212,9 @@ class QQMusicToplistIE(QQPlaylistBaseIE): list_id, 'Download toplist page') entries = [] - jsonp_url = "" if list_type == 'top': jsonp_url = "http://y.qq.com/y/static/toplist/json/top/%s/1.js" % num_id - elif list_type == 'global': + else: jsonp_url = "http://y.qq.com/y/static/toplist/json/global/%s/1_1.js" % num_id list = self._download_json(jsonp_url, list_id, note='Retrieve toplist json', |