Example #1
0
async def get_album_from_kugou(request: web.Request):
    return await get_album(kugou.KuGou(), request.match_info['album_id'])
Example #2
0
async def get_playlist_from_kugou(request: web.Request):
    return await get_playlist(kugou.KuGou(), request.match_info['playlist_id'])
Example #3
0
async def search_songs_from_kugou(request: web.Request):
    return await search_songs(kugou.KuGou(), request.match_info['keyword'])
Example #4
0
async def get_song_from_kugou(request: web.Request):
    return await get_song(kugou.KuGou(), request.match_info['song_id'])
Example #5
0
 async def test_get_song_lyric(self):
     async with kugou.KuGou() as client:
         resp = await client.get_song_lyric('1571941D82D63AD614E35EAD9DB6A6A2')
         self.assertIsNotNone(resp)
Example #6
0
 async def test_get_playlist(self):
     async with kugou.KuGou() as client:
         resp = await client.get_playlist('610433')
         self.assertIsNotNone(resp)
Example #7
0
 async def test_get_album(self):
     async with kugou.KuGou() as client:
         resp = await client.get_album('976965')
         self.assertIsNotNone(resp)
Example #8
0
 async def test_get_artist(self):
     async with kugou.KuGou() as client:
         resp = await client.get_artist('8965')
         self.assertIsNotNone(resp)
Example #9
0
 async def test_search_songs(self):
     async with kugou.KuGou() as client:
         resp = await client.search_songs('五月天')
         self.assertIsNotNone(resp)