mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 08:17:00 +00:00
[qqmusic] Fix code formatting
This commit is contained in:
parent
41333b97b9
commit
b480e7874b
1 changed files with 7 additions and 3 deletions
|
@ -200,12 +200,15 @@ class QQMusicToplistIE(QQPlaylistBaseIE):
|
||||||
list_type = list_id.split("_")[0]
|
list_type = list_id.split("_")[0]
|
||||||
num_id = list_id.split("_")[1]
|
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 = []
|
entries = []
|
||||||
if list_type == 'top':
|
if list_type == 'top':
|
||||||
list = self._download_json(
|
list = self._download_json(
|
||||||
"http://y.qq.com/y/static/toplist/json/top/%s/1.js" % num_id,
|
"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']:
|
for song in list['l']:
|
||||||
s = song['s']
|
s = song['s']
|
||||||
|
@ -222,4 +225,5 @@ class QQMusicToplistIE(QQPlaylistBaseIE):
|
||||||
default=None)
|
default=None)
|
||||||
list_desc = None
|
list_desc = None
|
||||||
|
|
||||||
return self.playlist_result(entries, list_id, list_name, list_desc)
|
return self.playlist_result(entries, list_id, list_name, list_desc)
|
||||||
|
|
Loading…
Reference in a new issue