diff options
author | ping <lipng.ong@gmail.com> | 2015-05-12 22:41:37 +0800 |
---|---|---|
committer | ping <lipng.ong@gmail.com> | 2015-05-12 22:41:37 +0800 |
commit | b480e7874b45862eae343ab8484aa43381cd28fa (patch) | |
tree | 2d951f39ec3579100b2b25e6e896822c8e1b4e0a /youtube_dl/extractor/qqmusic.py | |
parent | 41333b97b9471316cf0f395db59196e6571fc776 (diff) |
[qqmusic] Fix code formatting
Diffstat (limited to 'youtube_dl/extractor/qqmusic.py')
-rw-r--r-- | youtube_dl/extractor/qqmusic.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/youtube_dl/extractor/qqmusic.py b/youtube_dl/extractor/qqmusic.py index d4a85d8c3..bca4a8f90 100644 --- a/youtube_dl/extractor/qqmusic.py +++ b/youtube_dl/extractor/qqmusic.py @@ -200,12 +200,15 @@ class QQMusicToplistIE(QQPlaylistBaseIE): list_type = list_id.split("_")[0] num_id = list_id.split("_")[1] - list_page = self._download_webpage("http://y.qq.com/y/static/toplist/index/%s.html" % list_id, list_id, 'Download toplist page') + list_page = self._download_webpage( + "http://y.qq.com/y/static/toplist/index/%s.html" % list_id, + list_id, 'Download toplist page') entries = [] if list_type == 'top': list = self._download_json( "http://y.qq.com/y/static/toplist/json/top/%s/1.js" % num_id, - list_id, note='Retrieve toplist json', errnote='Unable to get toplist json', transform_source=self.strip_qq_jsonp) + list_id, note='Retrieve toplist json', errnote='Unable to get toplist json', + transform_source=self.strip_qq_jsonp) for song in list['l']: s = song['s'] @@ -222,4 +225,5 @@ class QQMusicToplistIE(QQPlaylistBaseIE): default=None) list_desc = None - return self.playlist_result(entries, list_id, list_name, list_desc)
\ No newline at end of file + return self.playlist_result(entries, list_id, list_name, list_desc) +
\ No newline at end of file |