Skip to content

Commit 4886bc9

Browse files
committed
playlist: Update description for GetPlaylistInfo (#69)
1 parent 841cf06 commit 4886bc9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pyncm/apis/playlist.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,18 @@
1010
def GetPlaylistInfo(playlist_id, offset=0, total=True, limit=1000):
1111
"""网页端 - 获取歌单内容
1212
13+
Note:
14+
摘自:https://binaryify.github.io/NeteaseCloudMusicApi/#/?id=%e8%8e%b7%e5%8f%96%e6%ad%8c%e5%8d%95%e8%af%a6%e6%83%85
15+
歌单能看到歌单名字, 但看不到具体歌单内容 , 调用此接口 , 传入歌单 id, 可 以获取对应歌单内的所有的音乐
16+
(未登录状态只能获取不完整的歌单,登录后是完整的),但是返回的 trackIds 是完整的,tracks 则是不完整的
17+
18+
因此,你可以通过 GetPlaylistAllTracks 获取完整的歌单内容
19+
1320
Args:
1421
playlist_id ([type]): 歌单 ID
15-
offset (int, optional): 获取偏移数. Defaults to 0.
16-
total (bool, optional): 是否获取全部内容. Defaults to True.
17-
limit (int, optional): 单次获取量. Defaults to 30.
22+
offset (int, optional): **无效** 获取偏移数. Defaults to 0.
23+
total (bool, optional): **无效** 是否获取全部内容. Defaults to True.
24+
limit (int, optional): **无效** 单次获取量. Defaults to 30.
1825
1926
Returns:
2027
dict

0 commit comments

Comments
 (0)