Skip to content

Commit

Permalink
v0.1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura committed Sep 24, 2022
1 parent 0e0ed9f commit 02a14d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions pycloudmusic/music163.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ async def search_music(
"""搜索单曲"""
data = await self._search(key, "1", page, limit)
return data["result"]["songCount"], (Music(music_data) for music_data in data["result"]['songs'])

async def search_playlist(
self,
key: str,
page: int = 0,
limit: int = 30
) -> tuple[int, Generator[PlayList, None, None]]:
"""搜索歌单"""
data = await self._search(key, "1000", page, limit)
return data["result"]["playlistCount"], (PlayList(playlist_data) for playlist_data in data["result"]['playlists'])

async def search_album(
self,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="pycloudmusic",
version="0.1.4.1",
version="0.1.4.2",
description="优雅的异步高性能 Python 音乐 API 库 (网易云音乐)",
keywords=[
"cloudmusic",
Expand Down

0 comments on commit 02a14d3

Please sign in to comment.